Jitendra12421 commited on
Commit
ba72e32
·
verified ·
1 Parent(s): 2ea072d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -436,6 +436,10 @@ def root() -> dict[str, str]:
436
 
437
  @app.get("/dashboard")
438
  def dashboard() -> dict:
 
 
 
 
439
  return attach_market_state(dashboard_payload())
440
 
441
 
 
436
 
437
  @app.get("/dashboard")
438
  def dashboard() -> dict:
439
+ try:
440
+ refresh_stale_data_once()
441
+ except Exception as exc:
442
+ print(f"[dashboard] stale refresh failed: {exc}", flush=True)
443
  return attach_market_state(dashboard_payload())
444
 
445