Fix typo in variable name

This commit is contained in:
Julian Lawrance 2019-12-01 12:53:00 +00:00
parent bb99158a6c
commit 81b890b7cc

View file

@ -1830,7 +1830,7 @@ class TypeDetailSerializer(serializers.ModelSerializer):
self.remove_type_entry(relations, type, direction='_damage_to') self.remove_type_entry(relations, type, direction='_damage_to')
# add entry # add entry
damage_factor = relations['damage_factor'] damage_factor = relation['damage_factor']
self.add_type_entry(relations, type, damage_factor, direction='_damage_to') self.add_type_entry(relations, type, damage_factor, direction='_damage_to')
del relation['generation'] del relation['generation']