fix(HEL-356): preserve derived limit streaks
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user