Generate daily report.
()
| 372 | |
| 373 | @app.post("/api/scheduled/daily-report") |
| 374 | async def run_daily_report(): |
| 375 | """Generate daily report.""" |
| 376 | try: |
| 377 | client = await get_dirty_client_async() |
| 378 | result = await client.execute_async(SCHEDULED_WORKER, "generate_daily_report") |
| 379 | return result |
| 380 | except DirtyError as e: |
| 381 | raise HTTPException(status_code=500, detail=str(e)) |
| 382 | |
| 383 | |
| 384 | @app.post("/api/scheduled/sync") |
nothing calls this directly
no test coverage detected