Skip to content

Commit

Permalink
Update packages/valory/skills/market_manager_abci/bets.py
Browse files Browse the repository at this point in the history
Co-authored-by: Adamantios Zaras <[email protected]>
  • Loading branch information
annasambrook and Adamantios authored Feb 5, 2025
1 parent 34d310a commit 2db969b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/valory/skills/market_manager_abci/bets.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def hook(data: Dict[str, Any]) -> Union[Bet, PredictionResponse, Dict[str, Bet]]
# this is necessary for backwards compatibility of the bets.json file
elif "id" in data_attributes:
# Extract only the attributes that exist in both Bet and data to ensure compatibility
common_attributes = set(bet_annotations) & set(data_attributes)
common_attributes = bet_annotations.keys() & data_attributes.keys()
data = {key: data[key] for key in common_attributes}
# Convert queue_status to a QueueStatus enum if present in data
if "queue_status" in data:
Expand Down

0 comments on commit 2db969b

Please sign in to comment.