diff --git a/twitch_hdt_ebs/serializers.py b/twitch_hdt_ebs/serializers.py index 7d380d6..5514103 100644 --- a/twitch_hdt_ebs/serializers.py +++ b/twitch_hdt_ebs/serializers.py @@ -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