diff --git a/modules/Archive/database.py b/modules/Archive/database.py index f3d26d1..6b29b88 100644 --- a/modules/Archive/database.py +++ b/modules/Archive/database.py @@ -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}"'