DinoPLayZ commited on
Commit
df7f619
·
verified ·
1 Parent(s): c28ddc7

Fast Interval Bug Alert cleared

Browse files
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -473,9 +473,6 @@ def process_tick():
473
  raise SystemExit(1)
474
 
475
  if new_events:
476
- fast_duration = int(os.getenv("FAST_DURATION", "120"))
477
- FAST_MODE_UNTIL = time.time() + fast_duration
478
-
479
  # If LAST_EVENT_ID is None, it's the very first startup run. Set ID without alerting.
480
  if LAST_EVENT_ID is None:
481
  LAST_EVENT_ID = new_events[0]["id"]
@@ -492,6 +489,9 @@ def process_tick():
492
  is_html=True
493
  )
494
  else:
 
 
 
495
  send_event_alerts(new_events)
496
  LAST_EVENT_ID = new_events[0]["id"]
497
  LAST_EVENT_CODE = new_events[0].get('event_code', LAST_EVENT_ID)
 
473
  raise SystemExit(1)
474
 
475
  if new_events:
 
 
 
476
  # If LAST_EVENT_ID is None, it's the very first startup run. Set ID without alerting.
477
  if LAST_EVENT_ID is None:
478
  LAST_EVENT_ID = new_events[0]["id"]
 
489
  is_html=True
490
  )
491
  else:
492
+ fast_duration = int(os.getenv("FAST_DURATION", "120"))
493
+ FAST_MODE_UNTIL = time.time() + fast_duration
494
+
495
  send_event_alerts(new_events)
496
  LAST_EVENT_ID = new_events[0]["id"]
497
  LAST_EVENT_CODE = new_events[0].get('event_code', LAST_EVENT_ID)