dak.c2s/backend
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
..
alembic fix: correct down_revision in 006 migration to match 005_disclosure 2026-02-26 17:13:22 +00:00
app fix: filter report data by max KW when generating reports 2026-02-26 23:16:20 +00:00
scripts feat: Excel export in Berichtswesen format + historical import 2026-02-24 08:07:28 +00:00
tests fix: remove patient names from coding template and restrict to admin 2026-02-26 17:20:28 +00:00
uploads/avatars feat: add avatar upload/delete endpoints with static file serving 2026-02-26 09:39:21 +00:00
.env.example feat: project scaffolding with FastAPI, config, database connection 2026-02-24 07:24:00 +00:00
alembic.ini feat: Alembic migrations, initial schema 2026-02-24 07:33:27 +00:00
requirements.txt feat: project scaffolding with FastAPI, config, database connection 2026-02-24 07:24:00 +00:00