From 9899cf57acc19bf64e90b141ee51ece30b856e64 Mon Sep 17 00:00:00 2001 From: Mud <44410798+MudDev@users.noreply.github.com> Date: Tue, 5 May 2026 14:18:45 -0600 Subject: [PATCH] fix: update regex for query part modification to handle multiline conditions --- plugins/Newsfeed/NewsfeedPlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Newsfeed/NewsfeedPlugin.py b/plugins/Newsfeed/NewsfeedPlugin.py index c9c89deb9..2bab99af8 100644 --- a/plugins/Newsfeed/NewsfeedPlugin.py +++ b/plugins/Newsfeed/NewsfeedPlugin.py @@ -77,7 +77,7 @@ def actionFeedQuery(self, to, limit=10, day_limit=3): else: where = " WHERE %s > strftime('%%s', 'now', '-%s day')" % (date_field, day_limit) if "WHERE" in query_part: - query_part = re.sub("WHERE (.*?)(?=$| GROUP BY)", where+" AND (\\1)", query_part) + query_part = re.sub(r"WHERE (.*?)(?=$| GROUP BY)", where + r" AND (\1)", query_part, flags=re.DOTALL) else: query_part += where query_parts[i] = query_part