patchnotes controller updated

This commit is contained in:
Justin Weins 2025-06-25 13:19:34 +02:00
parent 4017708282
commit dcc02ab60d
1 changed files with 1 additions and 2 deletions

View File

@ -125,10 +125,9 @@ def list_patchnotes(since: str | None = None):
user_id = current_user_id() # 1) aktueller Benutzer
# 2) Wenn ?since fehlt, gespeichertes last_login holen
if since is None:
try:
docs = list(collection.sort("patch_date", 1))
docs = collection.find({})
for d in docs:
d.pop("_id", None)
if isinstance(d["patch_date"], (datetime, date)):