diff options
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -57,7 +57,10 @@ class ItemDB: item_struct = Item() item_struct.name = item.get('name') if item.get('weight'): - item_struct.weight = item.get('weight') + item_struct.weight = int(item.get('weight')) + else: + item_struct.weight = 0 + if item.get('type'): item_struct.type = item.get('type') item_struct.description = item.get('description') |