This commit is contained in:
1 parent
0734b4d14d
commit
783f02f7d7
3 files changed
+10
-4
No files matched your search
+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