Skip to content

Commit

Permalink
fix github#49
Browse files Browse the repository at this point in the history
  • Loading branch information
mrooney committed Dec 4, 2015
1 parent b25daed commit 080c15a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1.14
---
- fix json output when using --filename
- flake8 fixes

1.13
---
- new get_net_worth / --net-worth options, thanks @wendlinga!
Expand Down
2 changes: 1 addition & 1 deletion mintapi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ def main():
print(json.dumps(data, indent=2))
elif options.filename.endswith('.json'):
with open(options.filename, 'w+') as f:
json.dumps(data, f, indent=2)
json.dump(data, f, indent=2)
else:
raise ValueError('file type must be json for non-transaction data')

Expand Down

0 comments on commit 080c15a

Please sign in to comment.