fixed fix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2021-12-13 05:58:53 +01:00
parent c3e395ea2a
commit 30104d46d3

View File

@ -26,7 +26,7 @@ def run(redis_client: Redis, site_url_map: Dict[str, str]):
# Figuring out if any of the sites need attention # Figuring out if any of the sites need attention
incraising_queue_at = [] incraising_queue_at = []
for site_name, site_stat in weather_report: for site_name, site_stat in weather_report.items():
if site_stat['queue']['derivative'] > 0.001 and site_stat['queue']['mean'] > 2: if site_stat['queue']['derivative'] > 0.001 and site_stat['queue']['mean'] > 2:
key = f"INCRAISINGQUEUE:{site_name}" key = f"INCRAISINGQUEUE:{site_name}"
incraising_queue_detected_times = redis_client.incr(key) incraising_queue_detected_times = redis_client.incr(key)