patchnotes controller updated
This commit is contained in:
parent
4017708282
commit
dcc02ab60d
|
|
@ -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)):
|
||||
|
|
|
|||
Loading…
Reference in New Issue