diff --git a/gen/openapi_server/controllers/patchnotes_controller.py b/gen/openapi_server/controllers/patchnotes_controller.py index 4b74ded..fc1df73 100644 --- a/gen/openapi_server/controllers/patchnotes_controller.py +++ b/gen/openapi_server/controllers/patchnotes_controller.py @@ -126,7 +126,9 @@ def list_patchnotes(since: str | None = None): user_id = current_user_id() # 1) aktueller Benutzer last_login = last_login_collection.find_one({"user_id": user_id}, {"last_login"}) query = {} + logging.info("since" + str(since)) if since: + logging.info("Went into if since") query = { "patch_date": { "$gte": last_login, @@ -145,6 +147,7 @@ def list_patchnotes(since: str | None = None): # 3) Datum validieren (nur wenn vorhanden) elif since is None: + logging.info("Went into if since is None") try: docs = collection.find({}) for d in docs: