updated filter

This commit is contained in:
katboi01 2025-01-05 18:49:14 +01:00
parent 6157eb1e40
commit 794bf9d30b
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class Database:
where_query += f" AND x_posts.id < {last_id}"
if actions_taken != [0, 1, 2, 3]:
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]) + ")"
if artist is not None and artist != "":
where_query += f' AND accounts.x_handle = "{artist}"'