From 78d45f0208182ed2a1a99aff914bb28239764b10 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Mon, 16 Sep 2024 17:25:37 +0200 Subject: [PATCH] Remove tzlocal warning Updated requirements --- cps/services/background_scheduler.py | 1 + requirements.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cps/services/background_scheduler.py b/cps/services/background_scheduler.py index 72991559..55b12df3 100644 --- a/cps/services/background_scheduler.py +++ b/cps/services/background_scheduler.py @@ -42,6 +42,7 @@ class BackgroundScheduler: if cls._instance is None: cls._instance = super(BackgroundScheduler, cls).__new__(cls) cls.log = logger.create() + logger.logging.getLogger('tzlocal').setLevel(logger.logging.WARNING) cls.scheduler = BScheduler() cls.scheduler.start() diff --git a/requirements.txt b/requirements.txt index 71074892..3f8a1b9f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ Flask-Babel>=0.11.1,<4.1.0 Flask-Principal>=0.3.2,<0.5.1 Flask>=1.0.2,<3.1.0 iso-639>=0.4.5,<0.5.0 -PyPDF>=3.15.6,<4.3.0 +PyPDF>=3.15.6,<4.4.0 pytz>=2016.10 requests>=2.28.0,<2.32.0 SQLAlchemy>=1.3.0,<2.1.0