From 5596999a3b81cd05519f7fc505a71e95bbcbdd64 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Sat, 7 Feb 2026 22:46:09 -0500 Subject: [PATCH] one last regression --- backend/handler/database/roms_handler.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/backend/handler/database/roms_handler.py b/backend/handler/database/roms_handler.py index a93eb7134..c3334b367 100644 --- a/backend/handler/database/roms_handler.py +++ b/backend/handler/database/roms_handler.py @@ -451,7 +451,13 @@ class DBRomsHandler(DBBaseHandler): condition = comb(*status_filters) # Apply negation if match_none, otherwise apply condition - return query.filter(~condition) if match_none else query.filter(condition) + query = query.filter(~condition) if match_none else query.filter(condition) + + # Don't apply the hidden filter is hidden is set + if "hidden" in values: + return query + + return query.filter(or_(RomUser.hidden.is_(False), RomUser.hidden.is_(None))) def _filter_by_regions( self,