Spaces:
Running
Running
yingfeng64 Claude Sonnet 4.6 commited on
Commit ·
292fb60
1
Parent(s): 98c3a25
Include prediction result in cache endpoint response
Browse filesCo-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
app.py
CHANGED
|
@@ -321,6 +321,7 @@ async def get_cache(ts_code: str | None = None):
|
|
| 321 |
"cached_at": entry["cached_at"].astimezone(_CST).strftime("%Y-%m-%d %H:%M:%S %Z"),
|
| 322 |
"expires_at": entry["expires_at"].astimezone(_CST).strftime("%Y-%m-%d %H:%M:%S %Z"),
|
| 323 |
"ttl_seconds": int(remaining),
|
|
|
|
| 324 |
})
|
| 325 |
return {"count": len(entries), "entries": entries}
|
| 326 |
|
|
|
|
| 321 |
"cached_at": entry["cached_at"].astimezone(_CST).strftime("%Y-%m-%d %H:%M:%S %Z"),
|
| 322 |
"expires_at": entry["expires_at"].astimezone(_CST).strftime("%Y-%m-%d %H:%M:%S %Z"),
|
| 323 |
"ttl_seconds": int(remaining),
|
| 324 |
+
"result": entry["result"],
|
| 325 |
})
|
| 326 |
return {"count": len(entries), "entries": entries}
|
| 327 |
|