mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2025-10-27 16:59:25 +00:00
Move code comment todos to forgejo issues
This commit is contained in:
12
main.py
12
main.py
@@ -34,8 +34,6 @@ def shutdown(sig, frame):
|
||||
cleanup_timer.stop()
|
||||
|
||||
# Utility method to get a data provider based on its config entry.
|
||||
# TODO we could probably find a way to do this more neatly by iterating through classes in "providers" and getting their
|
||||
# names, if Python allows that sort of thing
|
||||
def get_provider_from_config(config_providers_entry):
|
||||
match config_providers_entry["type"]:
|
||||
case "POTA":
|
||||
@@ -99,13 +97,3 @@ if __name__ == '__main__':
|
||||
for p in providers: status_data[p.name()] = {"status": p.status, "last_updated": p.last_update_time, "last_spot": p.last_spot_time}
|
||||
status_data["Cleanup Timer"] = {"status": cleanup_timer.status, "last_ran": cleanup_timer.last_cleanup_time}
|
||||
status_data["Web Server"] = {"status": web_server.status, "last_api_access": web_server.last_api_access_time, "last_page_access": web_server.last_page_access_time}
|
||||
|
||||
|
||||
|
||||
# TODO NOTES FOR NGINX REVERSE PROXY
|
||||
# local cache time of 15 sec to avoid over burdening python?
|
||||
|
||||
# TODO NOTES FOR FIELD SPOTTER
|
||||
# Still need to de-dupe spots
|
||||
# Still need to do QSY checking in FS because we can enable/disable showing them and don't want to re-query the API.
|
||||
# Filter comments, still do in FS or move that here?
|
||||
Reference in New Issue
Block a user