fix transaction query
This commit is contained in:
parent
e800282667
commit
5350fef36d
1 changed files with 5 additions and 3 deletions
|
@ -48,11 +48,13 @@ def _get_current_limit(budget_id):
|
|||
|
||||
def _get_current_transactions(budget_id):
|
||||
limit_id = _get_current_limit(budget_id).get('id')
|
||||
transactions_json = requests.get(
|
||||
host + "/api/v1/budgets/limits/{}/transactions".format(
|
||||
transactions_req = requests.get(
|
||||
host + "/api/v1/budgets/{}/limits/{}/transactions".format(
|
||||
budget_id,
|
||||
limit_id
|
||||
), headers=header
|
||||
).json()
|
||||
)
|
||||
transactions_json = transactions_req.json()
|
||||
transactions = transactions_json.get('data')
|
||||
while 'next' in transactions_json:
|
||||
transactions_json = requests.get(
|
||||
|
|
Loading…
Reference in a new issue