Skip to content

Commit

Permalink
feat: add some quick debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Apr 16, 2024
1 parent 96ef80f commit abd71fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions twitch_hdt_ebs/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ class PubSubMessageSerializer(serializers.Serializer):
def validate_data(self, data):
# Fix wrong card art for Duos by faking it to BGT_BATTLEGROUNDS because the Twitch extension will fetch
# constructed images otherwise.
game_type = data.get("game_type")
print(f"before: game_type={game_type}")

if data.get("game_type") in (65, 66, 67, 68):
data["game_type"] = 50

game_type = data.get("game_type")
print(f"after: game_type={game_type}")
return data


Expand Down

0 comments on commit abd71fb

Please sign in to comment.