dak.c2s/backend/app
CCS Admin 95e84a6978 fix: filter report data by max KW when generating reports
Previously, generate_full_report() ignored the kw parameter for data
filtering — it was only stored as metadata. This caused all reports to
contain data up to the latest available KW, making historical reports
(e.g., for KW 8) identical to the current one.

Now all 5 sheet calculation functions accept an optional max_kw parameter.
When generating a report for a specific KW, only cases with kw <= max_kw
are included. Dashboard and vorjahr callers are unaffected (max_kw=None).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 23:16:20 +00:00
..
api feat: add inline report viewer with 5-tab sheet display 2026-02-26 22:57:35 +00:00
core feat: JWT auth, bcrypt, MFA, dependency injection, security tests 2026-02-24 07:41:35 +00:00
models feat: add DisclosureRequest model and migration 2026-02-26 16:02:52 +00:00
schemas fix: make nachname nullable in CaseResponse to support data masking 2026-02-26 16:24:56 +00:00
services fix: filter report data by max KW when generating reports 2026-02-26 23:16:20 +00:00
utils feat: utility functions — fallgruppe mapping, KW calc, ICD/KVNR validation 2026-02-24 07:41:09 +00:00
__init__.py feat: project scaffolding with FastAPI, config, database connection 2026-02-24 07:24:00 +00:00
config.py fix: filter all case queries to DAK insurance only 2026-02-26 10:20:33 +00:00
database.py feat: project scaffolding with FastAPI, config, database connection 2026-02-24 07:24:00 +00:00
main.py feat: add avatar upload/delete endpoints with static file serving 2026-02-26 09:39:21 +00:00