Optimize probability hub market refresh

This commit is contained in:
2569718930@qq.com
2026-04-22 04:54:19 +08:00
parent ce394bc089
commit 40564b545d
4 changed files with 326 additions and 58 deletions
+1 -3
View File
@@ -605,7 +605,7 @@ class PolymarketReadOnlyLayer:
)
all_bucket_limit = max(
top_bucket_limit,
_safe_int(os.getenv("POLYMARKET_ALL_BUCKET_LIMIT", "24"), 24),
_safe_int(os.getenv("POLYMARKET_ALL_BUCKET_LIMIT", "8"), 8),
)
all_buckets = self._build_top_temperature_buckets(
city_key=city_key,
@@ -613,8 +613,6 @@ class PolymarketReadOnlyLayer:
primary_market=market,
limit=all_bucket_limit,
)
if all_buckets:
self._hydrate_bucket_prices(all_buckets)
top_buckets = list(all_buckets[:top_bucket_limit])
yes_payload = {