mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-08-11 23:21:42 +00:00
Merge branch 'main' into 2.0-pre
# Conflicts: # core/config.py # core/status_reporter.py # server/handlers/api/options.py # static/js/bands.js # static/js/map.js # static/js/spots.js # templates/status.html
This commit is contained in:
@@ -54,7 +54,8 @@ class StatusReporter:
|
||||
DATA_STORE.status_data["num_spots"] = len(DATA_STORE.spots.values())
|
||||
DATA_STORE.status_data["num_alerts"] = len(DATA_STORE.alerts.values())
|
||||
DATA_STORE.status_data["spot_providers"] = list(
|
||||
map(lambda p: {"name": p.name, "enabled": p.enabled, "status": p.status,
|
||||
map(lambda p: {"name": p.name, "enabled": p.enabled,
|
||||
"enabled_by_default_in_web_ui": p.enabled_by_default_in_web_ui, "status": p.status,
|
||||
"last_updated": p.last_update_time.replace(
|
||||
tzinfo=pytz.UTC).timestamp() if p.last_update_time.year > 2000 else 0,
|
||||
"last_spot": p.last_spot_time.replace(
|
||||
|
||||
Reference in New Issue
Block a user