movies: fix movie db issues
Local Docker Build (Dev) / build-dev (push) Successful in 4s

This commit is contained in:
2025-10-18 21:00:23 -04:00
parent 0734b4d14d
commit 783f02f7d7
3 changed files with 10 additions and 4 deletions
+8 -2
View File
@@ -82,9 +82,15 @@ async def get_movies_list(dependencies: dict,
if has_date is not None:
if has_date:
where_conditions.append("dateadded IS NOT NULL AND dateadded != ''")
if db.db_type == "postgresql":
where_conditions.append("dateadded IS NOT NULL")
else:
where_conditions.append("dateadded IS NOT NULL AND dateadded != ''")
else:
where_conditions.append("(dateadded IS NULL OR dateadded = '')")
if db.db_type == "postgresql":
where_conditions.append("dateadded IS NULL")
else:
where_conditions.append("(dateadded IS NULL OR dateadded = '')")
if source_filter:
where_conditions.append("source = ?")