Upload app.py
Browse files
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 |
|