updated filter
This commit is contained in:
parent
6157eb1e40
commit
794bf9d30b
|
@ -57,7 +57,7 @@ class Database:
|
||||||
where_query += f" AND x_posts.id < {last_id}"
|
where_query += f" AND x_posts.id < {last_id}"
|
||||||
if actions_taken != [0, 1, 2, 3]:
|
if actions_taken != [0, 1, 2, 3]:
|
||||||
where_query += " AND (" + " OR ".join([f"x_posts.action_taken = {action}" for action in actions_taken]) + ")"
|
where_query += " AND (" + " OR ".join([f"x_posts.action_taken = {action}" for action in actions_taken]) + ")"
|
||||||
if include_ratings != ["SFW", "NSFW"]:
|
if include_ratings != ["SFW", "NSFW", "NSFL"]:
|
||||||
where_query += " AND (" + " OR ".join([f'accounts.rating = "{rating}"' for rating in include_ratings]) + ")"
|
where_query += " AND (" + " OR ".join([f'accounts.rating = "{rating}"' for rating in include_ratings]) + ")"
|
||||||
if artist is not None and artist != "":
|
if artist is not None and artist != "":
|
||||||
where_query += f' AND accounts.x_handle = "{artist}"'
|
where_query += f' AND accounts.x_handle = "{artist}"'
|
||||||
|
|
Loading…
Reference in New Issue