fixing linter issue

This commit is contained in:
Robert Williams 2024-02-09 23:30:52 -06:00
parent 4bf4e676f5
commit c843a67a00

View file

@ -2344,9 +2344,11 @@ class MoveDetailSerializer(serializers.ModelSerializer):
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}')
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}"
)
return data