mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-24 16:24:32 +00:00
First attempt at converting "sig" to "activity" for v3
This commit is contained in:
@@ -111,9 +111,11 @@ class StatusReporter:
|
||||
}
|
||||
for p in DATA_PROVIDERS.static_data_providers
|
||||
]
|
||||
DATA_STORE.status.get()["sig_ref_data_providers"] = [
|
||||
# Remove the old name for this key if it's still present in status data persisted by Spothole v2 and earlier
|
||||
DATA_STORE.status.get().pop("sig_ref_data_providers", None)
|
||||
DATA_STORE.status.get()["activity_ref_data_providers"] = [
|
||||
{
|
||||
"sig_name": p.sig_name,
|
||||
"activity_name": p.activity_name,
|
||||
"enabled": p.enabled,
|
||||
"status": p.status,
|
||||
"last_updated": p.last_update_time.replace(tzinfo=pytz.UTC).timestamp()
|
||||
@@ -121,7 +123,7 @@ class StatusReporter:
|
||||
else 0,
|
||||
"reference_count": p.reference_count,
|
||||
}
|
||||
for p in DATA_PROVIDERS.sig_ref_data_providers
|
||||
for p in DATA_PROVIDERS.activity_ref_data_providers
|
||||
]
|
||||
DATA_STORE.status.get()["callsign_data_providers"] = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user