danpat / uledger Goto Github PK
View Code? Open in Web Editor NEWMinimalist python clone of ledger-cli
License: MIT License
Minimalist python clone of ledger-cli
License: MIT License
For first-starters I'd be nice to get a non-empty web report
$ git clone https://github.com/danpat/uledger.git
$ cd uledger
$ ./uledger.py -f example.ledger web
$ lynx -dump report.html
$ # Check that the produced report.html is empty.
The cause is that the the interval of years computed at web.make_report() is empty []
.
I've attached a quick patch to address the issue.
Date: Thu, 5 Nov 2015 15:05:30 +0100
Subject: [PATCH] uledger: Fix web.py make_report date interval [startyear, endyear[
---
web.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web.py b/web.py
index a5322a3..b20e85f 100644
--- a/web.py
+++ b/web.py
@@ -38,7 +38,7 @@ def make_report(ledger,destdir):
enddate = ledger.enddate()
startyear = startdate.split("-")[0]
- endyear = enddate.split("-")[0]
+ endyear = str(int(enddate.split("-")[0])+1)
# Year by year
--
2.1.4
Next thing to figure now is why the report.html now correctly handles the years,
but no accounting data is provided in the report :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.