From f53a65834b7af5393c074f7ae5448c2c3778bc4f Mon Sep 17 00:00:00 2001 From: pablo Date: Tue, 3 Nov 2020 14:00:51 +0100 Subject: [PATCH] Turned method static. --- capturer/capturer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/capturer/capturer.py b/capturer/capturer.py index d8a1bff..3acda04 100644 --- a/capturer/capturer.py +++ b/capturer/capturer.py @@ -64,7 +64,8 @@ class Capturer: task._update_status("Captura inserted") logging.info("New ad inserted.") - def _in_working_hours(self) -> bool: + @staticmethod + def _in_working_hours() -> bool: """ Checks whether now is within the working hours of the daemon. :return: True if so, false if not