bigghuggs commited on
Commit
a92854f
·
verified ·
1 Parent(s): 19c01ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1089,7 +1089,7 @@ def loadColorAndCharacter(text, seshid):
1089
 
1090
  print('sesh.display_items_[sesh.current_img_signature]: ', sesh.display_items_[sesh.current_img_signature])
1091
  print('item_data_: ', [(k,len(v)) for k,v in sesh.item_data_[sesh.current_img_signature][sesh.room_type][sesh.room_style][sesh.price][sesh.Palette_ids[sesh.current_img_signature]].items() if k not in ['Palette', 'Living Room', 'Bedroom']])
1092
- item_locator_data = [sesh.item_data_[sesh.current_img_signature][sesh.room_type][sesh.room_style][sesh.price][sesh.Palette_ids[sesh.current_img_signature]][data[1]][data[0]] for data in sesh.display_items_[sesh.current_img_signature] if data[1] not in ['Palette', 'Living Room', 'Bedroom']]
1093
  print('item_locator_data: ', item_locator_data)
1094
 
1095
  url = 'https://dreamdemo.pythonanywhere.com/shopping'
 
1089
 
1090
  print('sesh.display_items_[sesh.current_img_signature]: ', sesh.display_items_[sesh.current_img_signature])
1091
  print('item_data_: ', [(k,len(v)) for k,v in sesh.item_data_[sesh.current_img_signature][sesh.room_type][sesh.room_style][sesh.price][sesh.Palette_ids[sesh.current_img_signature]].items() if k not in ['Palette', 'Living Room', 'Bedroom']])
1092
+ item_locator_data = {data[1]: sesh.item_data_[sesh.current_img_signature][sesh.room_type][sesh.room_style][sesh.price][sesh.Palette_ids[sesh.current_img_signature]][data[1]][data[0]] for data in sesh.display_items_[sesh.current_img_signature] if data[1] not in ['Palette', 'Living Room', 'Bedroom']}
1093
  print('item_locator_data: ', item_locator_data)
1094
 
1095
  url = 'https://dreamdemo.pythonanywhere.com/shopping'