fix(dark-tariff): patch SQLi, weak calculation_id, and ZKP challenge bias

This commit is contained in:
takuya committed 2026-11-29 13:31:13 +03:00
1 parent 1857506f60
commit 58bdfcb829
5 files changed
+312 -16

No files matched your search

@@ -22,6 +22,8 @@ async def finance_summary(period: str | None = None, fields: list[str] = Query(d
@router.post("/export")
async def export_report(body: ReportQueryIn):
if body.report != "finance":
raise QueryError("P0400", "Unknown report type.")
fields = body.fields
if not fields:
fields = [field["id"] for field in await operations.report_fields(body.report)]