mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-24 20:33:04 +00:00
fixing linter issue
This commit is contained in:
parent
4bf4e676f5
commit
c843a67a00
1 changed files with 6 additions and 4 deletions
|
@ -2344,10 +2344,12 @@ 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
|
||||
|
||||
def get_effect_change_text(self, obj):
|
||||
|
|
Loading…
Reference in a new issue