summaryrefslogtreecommitdiff
path: root/fracture/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to 'fracture/__main__.py')
-rw-r--r--fracture/__main__.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/fracture/__main__.py b/fracture/__main__.py
index c99b0e9..44f2518 100644
--- a/fracture/__main__.py
+++ b/fracture/__main__.py
@@ -122,17 +122,11 @@ def summarize(xlsx=False, year=None, quarter=None):
key=lambda x: x["type"])
keys = list(rows[0].keys())
+ # FIXME all rows don't match and I'm putting them together in weird orders
for r in rows:
for k in r.keys():
if k not in keys:
- # TODO:
- # Inserts all the taxes at the end, but this is not cool
- # because it needs information about how is the invoice
- # arranged
- # Maybe move this to a static function in invoices and call it
- # summary and make it work with some logic like: create the
- # keys first and then go setting them in order
- keys.insert(-1, k)
+ keys.append(k)
import sys
wrtr = DictWriter(sys.stdout, keys)
wrtr.writeheader()