Skip to content

Commit

Permalink
Merge branch 'yegle-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mrooney committed Dec 4, 2015
2 parents b11e2c9 + bf0cb2a commit b25daed
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mintapi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,10 @@ def get_net_worth(self, account_data=None):

# account types in this list will be subtracted
negative_accounts = ['loan', 'loans', 'credit']
net_worth = 0L
try:
net_worth = long()
except NameError:
net_worth = 0

# iterate over accounts and add or subtract account balances
for account in [a for a in account_data if a['isActive']]:
Expand Down Expand Up @@ -556,8 +559,8 @@ def main():
if options.accounts_ext:
options.accounts = True

if not (options.accounts or options.budgets or options.transactions or
options.net_worth):
if not any([options.accounts, options.budgets, options.transactions,
options.net_worth]):
options.accounts = True

mint = Mint.create(email, password)
Expand Down

0 comments on commit b25daed

Please sign in to comment.