Refactor client API endpoints for DCA dashboard: Update endpoint structure to focus on client-specific functionalities, including dashboard summary, transaction history, and analytics. Enhance code readability with improved formatting and add support for exporting transaction data in CSV format.
This commit is contained in:
parent
edb0b4d05e
commit
32e8f31b82
2 changed files with 131 additions and 65 deletions
14
__init__.py
14
__init__.py
|
|
@ -15,7 +15,9 @@ logger.debug(
|
|||
)
|
||||
|
||||
|
||||
satmachineclient_ext: APIRouter = APIRouter(prefix="/satmachineclient", tags=["DCA Client"])
|
||||
satmachineclient_ext: APIRouter = APIRouter(
|
||||
prefix="/satmachineclient", tags=["DCA Client"]
|
||||
)
|
||||
satmachineclient_ext.include_router(satmachineclient_generic_router)
|
||||
satmachineclient_ext.include_router(satmachineclient_api_router)
|
||||
|
||||
|
|
@ -39,11 +41,15 @@ def satmachineclient_stop():
|
|||
|
||||
def satmachineclient_start():
|
||||
# Start invoice listener task
|
||||
invoice_task = create_permanent_unique_task("ext_satmachineclient", wait_for_paid_invoices)
|
||||
invoice_task = create_permanent_unique_task(
|
||||
"ext_satmachineclient", wait_for_paid_invoices
|
||||
)
|
||||
scheduled_tasks.append(invoice_task)
|
||||
|
||||
|
||||
# Start hourly transaction polling task
|
||||
polling_task = create_permanent_unique_task("ext_satmachineclient_polling", hourly_transaction_polling)
|
||||
polling_task = create_permanent_unique_task(
|
||||
"ext_satmachineclient_polling", hourly_transaction_polling
|
||||
)
|
||||
scheduled_tasks.append(polling_task)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue