diff options
author | Rawng <rawng.github@gmail.com> | 2014-09-27 02:34:37 -0400 |
---|---|---|
committer | Rawng <rawng.github@gmail.com> | 2014-09-27 02:34:37 -0400 |
commit | 51f924562b2a1e743fa8996c75fdf489aa51eef6 (patch) | |
tree | fb6abd192df2130d5092d0d71756e931d0c7496a | |
parent | 034d1a573d6e847cfc4d9e0a6dffeefa3b5b35e6 (diff) | |
download | manamarket-51f924562b2a1e743fa8996c75fdf489aa51eef6.tar.gz manamarket-51f924562b2a1e743fa8996c75fdf489aa51eef6.tar.bz2 manamarket-51f924562b2a1e743fa8996c75fdf489aa51eef6.tar.xz manamarket-51f924562b2a1e743fa8996c75fdf489aa51eef6.zip |
Fix variable names in innermost loop
-rw-r--r-- | utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -62,12 +62,12 @@ class ItemDB: item_struct = Item() item_struct.name = item3.get('name') if item3.get('weight'): - item_struct.weight = item.get('weight') + item_struct.weight = item3.get('weight') else: item_struct.weight = 0 if item3.get('type'): item_struct.type = item3.get('type') - item_struct.description = item.get('description') + item_struct.description = item3.get('description') self.item_names[int(item3.get('id'))] = item_struct def getItem(self, item_id): |