feat: ensure periodic data updates for app stability

Added instructions to README for regularly triggering `/cron/` to keep the app's cached data updated. Modified `main.py` to initialize `global_ibles` even when using a WSGI server, ensuring data consistency. This change improves the reliability and performance of the app by maintaining up-to-date data.

Relates to #9
This commit is contained in:
Kumi 2024-10-02 11:54:03 +02:00
parent 8356f71fc1
commit ef0c0a5e89
Signed by: kumi
GPG key ID: ECBCC9082395383F
2 changed files with 5 additions and 0 deletions

View file

@ -40,3 +40,6 @@ def main():
if __name__ == "__main__":
main()
else:
# Even if we're using a wsgi server, we still have to initialize global_ibles
update_data(app)