From 888ab30bfcab2af3c7b5c7a919fed03beeb8de77 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Wed, 18 Jun 2025 17:03:30 +0300 Subject: [PATCH] Allow task handler to work even if no timer is set. --- app/library/Tasks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/library/Tasks.py b/app/library/Tasks.py index f439aea7..862e41ff 100644 --- a/app/library/Tasks.py +++ b/app/library/Tasks.py @@ -354,7 +354,10 @@ class HandleTask: def _dispatcher(self): for task in self._tasks.get_all(): - if not task.timer or "[no_handler]" in task.name: + if "[no_handler]" in task.name: + continue + + if not task.timer and "[only_handler]" not in task.name: continue try: