-
-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Labels
Description
Lines 109 to 119 in 0b7536d
| def update_history(results): | |
| # TODO: Configure groups in history page | |
| history = load_history() | |
| current_time = datetime.now().isoformat() | |
| for group in results.keys(): | |
| for check in results[group]: | |
| if check['name'] not in history: | |
| history[check['name']] = [] | |
| history[check['name']].append({'timestamp': current_time, 'status': check['status']}) | |
| history[check['name']] = history[check['name']][-MAX_HISTORY_ENTRIES:] | |
| save_history(history) |