Update app.py
Browse files11 unmodified lines1213141516171829 unmodified lines48495051525354555611 unmodified linesdef sync_logic():"""Background task to sync prices."""while True:print(f"π [Background Sync] Starting update at {time.ctime()}...")try:with open(HTML_FILE, 'r', encoding='utf-8') as f:content = f.read()29 unmodified lineswith open(HTML_FILE, 'w', encoding='utf-8') as f:f.write(updated_content)print("β [Background Sync] HTML File Updated.")except Exception as e:print(f"β [Background Sync] Error: {e}")time.sleep(SYNC_INTERVAL)11 unmodified lines1213141516171829 unmodified lines48495051525354555611 unmodified linesdef sync_logic():"""Background task to sync prices."""while True:print(f"π [Background Sync] Starting update at {time.ctime()}...", flush=True)try:with open(HTML_FILE, 'r', encoding='utf-8') as f:content = f.read()29 unmodified lineswith open(HTML_FILE, 'w', encoding='utf-8') as f:f.write(updated_content)print("β [Background Sync] HTML File Updated.", flush=True)except Exception as e:print(f"β [Background Sync] Error: {e}", flush=True)time.sleep(SYNC_INTERVAL)
app.py+3-3