feat: Update exported to get all transactions regardless of pages
This commit is contained in:
parent
d8e76be40e
commit
c657edd08a
@ -69,7 +69,7 @@ def transactionExport(params, authentication):
|
|||||||
format = format.split(',')
|
format = format.split(',')
|
||||||
format = [item.strip() for item in format]
|
format = [item.strip() for item in format]
|
||||||
|
|
||||||
transactions = account.getTransactions(authentication.split(":")[0])
|
transactions = account.getAllTransactions(authentication.split(":")[0])
|
||||||
for tx in transactions:
|
for tx in transactions:
|
||||||
for item in format:
|
for item in format:
|
||||||
if item in tx:
|
if item in tx:
|
||||||
@ -86,4 +86,4 @@ def transactionExport(params, authentication):
|
|||||||
with open("user_data/report.csv", "w") as f:
|
with open("user_data/report.csv", "w") as f:
|
||||||
f.write(report)
|
f.write(report)
|
||||||
|
|
||||||
return {"status": "Success saved in user_data"}
|
return {"status": "Success saved in user_data"}
|
||||||
|
Loading…
Reference in New Issue
Block a user