mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-24 20:33:04 +00:00
that line was needed after all
This commit is contained in:
parent
41818e4755
commit
d234ef9def
1 changed files with 2 additions and 2 deletions
|
@ -2343,10 +2343,10 @@ class MoveDetailSerializer(serializers.ModelSerializer):
|
||||||
data = MoveEffectEffectTextSerializer(
|
data = MoveEffectEffectTextSerializer(
|
||||||
effect_texts, many=True, context=self.context
|
effect_texts, many=True, context=self.context
|
||||||
).data
|
).data
|
||||||
|
|
||||||
effect_entries = data[0]
|
effect_entries = data[0]
|
||||||
for i, k in enumerate(effect_entries):
|
for i, k in enumerate(effect_entries):
|
||||||
data[0][k] = effect_entries[k].replace('$effect_chance', f'{obj.move_effect_chance}')
|
if '$effect_chance%' in effect_entries[k]:
|
||||||
|
data[0][k] = effect_entries[k].replace('$effect_chance', f'{obj.move_effect_chance}')
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue