From 0bf43ed8fa3a77c6cf07b9538ae308d340775527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Rodrigo?= Date: Thu, 12 Oct 2023 09:31:26 +0000 Subject: [PATCH] Fix amrkers.fixes on query #474 --- modules/query.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/query.py b/modules/query.py index 09c72ccb..9004a701 100644 --- a/modules/query.py +++ b/modules/query.py @@ -287,7 +287,6 @@ async def _gets(db: Connection, params: Params) -> List[Dict[str, Any]]: sqlbase += """ markers.source_id, markers.elems, - markers.fixes, markers.subtitle, sources.country, sources.analyser, @@ -297,9 +296,11 @@ async def _gets(db: Connection, params: Params) -> List[Dict[str, Any]]: items.menu""" if params.status not in ("done", "false"): sqlbase += """, + markers.fixes, -1 AS date""" else: sqlbase += """, + NULL AS fixes, markers.date,""" sqlbase = ( sqlbase[0:-1]