removing unnecessary line

This commit is contained in:
Robert Williams 2024-02-03 21:56:25 -06:00 committed by indyandie
parent 74b4d0a0ea
commit 41818e4755
No known key found for this signature in database
GPG key ID: FDB83C1AED3933E1

View file

@ -2343,10 +2343,10 @@ class MoveDetailSerializer(serializers.ModelSerializer):
data = MoveEffectEffectTextSerializer(
effect_texts, many=True, context=self.context
).data
effect_entries = data[0]
for i, k in enumerate(effect_entries):
if '$effect_chance%' in effect_entries[k]:
data[0][k] = effect_entries[k].replace('$effect_chance', f'{obj.move_effect_chance}')
data[0][k] = effect_entries[k].replace('$effect_chance', f'{obj.move_effect_chance}')
return data