bigghuggs commited on
Commit
b4f3abb
·
verified ·
1 Parent(s): 459c70c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -547,7 +547,7 @@ def updateItemDisplay(seshid, budget=False, pallete_change=False):
547
  sesh.updated_display = realised_display
548
  summarisePerStore(seshid)
549
 
550
- #gen_uid = str(time.time())
551
  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']}
552
  print('item_locator_data: ', item_locator_data, '\n/*/*', [item_locator_data[product_pd_count[0]] for i,product_pd_count in enumerate(sesh.product_pd_counts)])
553
  responses = [r.decode('ISO-8859-1') if type(r) != type(None) else r for r in sesh.responses]
 
547
  sesh.updated_display = realised_display
548
  summarisePerStore(seshid)
549
 
550
+ sesh.product_pd_counts = [(product,pd_count) for store in sesh.summary_joined for product,pd_count in sesh.summary_joined[store].items()]
551
  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']}
552
  print('item_locator_data: ', item_locator_data, '\n/*/*', [item_locator_data[product_pd_count[0]] for i,product_pd_count in enumerate(sesh.product_pd_counts)])
553
  responses = [r.decode('ISO-8859-1') if type(r) != type(None) else r for r in sesh.responses]