From 9263ca7f13671f743d5189da559931fe68c8e930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Mon, 13 May 2024 13:04:59 +0200 Subject: [PATCH] verify fix --- app/verifier.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/verifier.py b/app/verifier.py index 44966154..d71757bc 100644 --- a/app/verifier.py +++ b/app/verifier.py @@ -28,8 +28,8 @@ def verify_data(): # app.logger.error(f'Verify data - failed - registrations count is lower or equal than yesterday ({metrics.registrace_celkem_zmena_den}).') # return False - if metrics.ockovani_pocet_davek_zmena_den is not None and metrics.ockovani_pocet_davek_zmena_den <= 0: - app.logger.error(f'Verify data - failed - vaccinated doses count is lower or equal than yesterday ({metrics.ockovani_pocet_davek_zmena_den}).') + if metrics.ockovani_pocet_davek_zmena_den is not None and metrics.ockovani_pocet_davek_zmena_den < 0: + app.logger.error(f'Verify data - failed - vaccinated doses count is lower than yesterday ({metrics.ockovani_pocet_davek_zmena_den}).') return False app.logger.info('Verify data - successful.')