fix(HEL-356): preserve derived limit streaks

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
总管
2026-09-09 17:24:49 +08:00
co-authored by multica-agent
parent 5f343a6bae
commit c3881af708
4 changed files with 71 additions and 10 deletions
+10 -1
View File
@@ -169,7 +169,16 @@ class DailyMarketMixin:
current = item.get(key)
if incoming in (None, "", "--"):
continue
if current in (None, "", "--", 0, 0.0):
# The daily fallback and the board pool can arrive at different
# times. Keep the stronger streak instead of freezing the
# provisional default at one or letting a stale pool lower it.
if key == "limit_times":
item[key] = max(
1,
int(_number(current, 1)),
int(_number(incoming, 1)),
)
elif current in (None, "", "--", 0, 0.0):
item[key] = incoming
merged.append(item)
return merged