Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rkw committed Jul 13, 2024
1 parent 56bac89 commit 626cea1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion monzo-search
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class Monzo:
#
# transactions = self.process_pending_refunds(transactions)

display_columns = ['account','pot','date','money_in','money_out','description']
display_columns = ['id','account','pot','date','money_in','money_out','description']

if show_declined:
display_columns.append('decline_reason')
Expand Down
4 changes: 3 additions & 1 deletion monzo_utils/lib/monzo_payments.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,9 @@ def abbreviate_string(self, string):

def get_last_salary_date(self):
if 'salary_account' in self.config and self.config['salary_account'] != self.account_name:
account = Account.one("select * from account where provider_id = %s and name = %s", [self.provider.id, self.config['salary_account']])
account = Account.one(provider_id=self.provider.id, name=self.config['salary_account'])
if not account:
raise Exception("account not found")
else:
account = self.account

Expand Down
2 changes: 0 additions & 2 deletions monzo_utils/model/finance.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ def all_finance_transactions(self):
if 'single_payment' in self.payment_config and self.payment_config['single_payment']:
filter_expression, attr_names, attr_values, key_condition_expression = self.get_transaction_where_condition(amounts=False)

print(self.payment_config['name'])

self.cache['all_finance_transactions'] = []

account_ids = [self.account.id]
Expand Down

0 comments on commit 626cea1

Please sign in to comment.