This commit is contained in:
+8
-2
@@ -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 = ?")
|
||||
|
||||
Reference in New Issue
Block a user