Skip to content

Commit

Permalink
#99 expenses have to be nagtive so using diff also without older finance
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh4kE committed Dec 17, 2016
1 parent 29655eb commit 3b61a62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/views/ofm/finance_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _get_finances_diff_in_json(newer_finances, older_finances):
if not newer_finances:
newer_finances = Finance.objects.all().order_by('matchday')[0]

finances_diff = newer_finances
finances_diff = newer_finances.diff(Finance())
if older_finances:
finances_diff = newer_finances.diff(older_finances)

Expand Down

0 comments on commit 3b61a62

Please sign in to comment.