summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRawng <rawng.github@gmail.com>2014-09-27 02:34:37 -0400
committerRawng <rawng.github@gmail.com>2014-09-27 02:34:37 -0400
commit51f924562b2a1e743fa8996c75fdf489aa51eef6 (patch)
treefb6abd192df2130d5092d0d71756e931d0c7496a
parent034d1a573d6e847cfc4d9e0a6dffeefa3b5b35e6 (diff)
downloadmanamarket-51f924562b2a1e743fa8996c75fdf489aa51eef6.tar.gz
manamarket-51f924562b2a1e743fa8996c75fdf489aa51eef6.tar.bz2
manamarket-51f924562b2a1e743fa8996c75fdf489aa51eef6.tar.xz
manamarket-51f924562b2a1e743fa8996c75fdf489aa51eef6.zip
Fix variable names in innermost loop
-rw-r--r--utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.py b/utils.py
index 8182768..fb0be37 100644
--- a/utils.py
+++ b/utils.py
@@ -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):