Skip to content

Commit

Permalink
Merge pull request #840 from jan-stanek/verify-fix
Browse files Browse the repository at this point in the history
Verify fix
  • Loading branch information
msusicky authored May 13, 2024
2 parents 71f32b8 + 9263ca7 commit 4aeaa2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
Expand Down

0 comments on commit 4aeaa2b

Please sign in to comment.