Skip to content

Commit

Permalink
off-by-one error in calculating cash_in_bank outcomes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Malmgren committed Dec 15, 2015
1 parent 370961c commit 819cda6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions a_model/argparsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# cherry picked from http://stackoverflow.com/a/8527629/564709
class DefaultListAction(argparse.Action):
CHOICES = list(reports.AVAILABLE_REPORTS)

def __call__(self, parser, namespace, values, option_string=None):
if values:
for value in values:
Expand Down
1 change: 0 additions & 1 deletion a_model/reports/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def _get_report_cls(module_name):
return obj
return None


# automatically detect which reports need to be downloaded form quickbooks,
# gdrive, and uploaded back to gdrive depending on class attributes on the
# report objects
Expand Down
2 changes: 1 addition & 1 deletion bin/simulate_cash_in_bank.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
eoy = datetime.date(datetime.date.today().year, 12, 31)
months_until_eoy = datascope.profit_loss.get_months_from_now(eoy)
outcomes = datascope.get_outcomes_in_month(
months_until_eoy-1, monthly_cash_outcomes
months_until_eoy, monthly_cash_outcomes
)

# outcome labels
Expand Down

0 comments on commit 819cda6

Please sign in to comment.