Skip to content

Commit

Permalink
Fix amrkers.fixes on query #474
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Oct 12, 2023
1 parent e4de726 commit 0bf43ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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]
Expand Down

0 comments on commit 0bf43ed

Please sign in to comment.