feat: event eco

This commit is contained in:
OpenSquared
2026-07-21 15:59:53 +02:00
parent 5f23141992
commit 24e5e4b03b
7 changed files with 129 additions and 50 deletions

View File

@@ -202,7 +202,9 @@ def startup():
except Exception as _e:
print(f"[Startup] FXStreet purge skipped: {_e}", flush=True)
# Calendar sync loop — FF only (live JSON + HTML scraper); interval from calendar_refresh_h config (default 6h)
# Calendar sync loop — FF live JSON every calendar_refresh_h (default 6h); the FF HTML
# scraper (heavier, one FlareSolverr browser fetch per week) is throttled separately
# inside calendar_sync() via calendar_scrape_refresh_h (default 24h, once/day)
import threading, time as _time
def _calendar_sync_loop():
_time.sleep(60) # let server fully boot