Skip to content

Commit

Permalink
fix: queustatus fetching during read
Browse files Browse the repository at this point in the history
  • Loading branch information
keshav1998 committed Dec 6, 2024
1 parent ad354de commit 110d60f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/valory/skills/market_manager_abci/bets.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ def hook(data: Dict[str, Any]) -> Union[Bet, PredictionResponse, Dict[str, Bet]]
# if this is a `Bet`
bet_annotations = sorted(Bet.__annotations__.keys())
if bet_annotations == data_attributes:
data["queue_status"] = QueueStatus(data["queue_status"])
return Bet(**data)
else:
# fetch missing attributes from the data
Expand Down

0 comments on commit 110d60f

Please sign in to comment.