Update app.py
Browse files
app.py
CHANGED
|
@@ -415,7 +415,7 @@ def updateItemDisplay(seshid, budget=False, pallete_change=False):
|
|
| 415 |
r = requests.post(url, data=json.dumps(valid_data), headers=headers)
|
| 416 |
print('json return status code: ', r.status_code)
|
| 417 |
data_dict = json.loads(r.content)
|
| 418 |
-
print('json return item_data_: ', data_dict['item_data_'])
|
| 419 |
for k in data_dict:
|
| 420 |
if k == 'seshid': continue
|
| 421 |
print('setting attr: ', k)
|
|
@@ -1086,7 +1086,9 @@ def loadColorAndCharacter(text, seshid):
|
|
| 1086 |
sesh.tg_responses = []
|
| 1087 |
urls = [product_pd_count[1]['product_dict']['href'] for product_pd_count in sesh.product_pd_counts]
|
| 1088 |
sesh.responses = asyncio.run(main(urls))
|
| 1089 |
-
|
|
|
|
|
|
|
| 1090 |
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 ['Pallete', 'Living Room', 'Bedroom']]
|
| 1091 |
print('item_locator_data: ', item_locator_data)
|
| 1092 |
|
|
|
|
| 415 |
r = requests.post(url, data=json.dumps(valid_data), headers=headers)
|
| 416 |
print('json return status code: ', r.status_code)
|
| 417 |
data_dict = json.loads(r.content)
|
| 418 |
+
#print('json return item_data_: ', data_dict['item_data_'])
|
| 419 |
for k in data_dict:
|
| 420 |
if k == 'seshid': continue
|
| 421 |
print('setting attr: ', k)
|
|
|
|
| 1086 |
sesh.tg_responses = []
|
| 1087 |
urls = [product_pd_count[1]['product_dict']['href'] for product_pd_count in sesh.product_pd_counts]
|
| 1088 |
sesh.responses = asyncio.run(main(urls))
|
| 1089 |
+
|
| 1090 |
+
print('sesh.display_items_[sesh.current_img_signature]: ', sesh.display_items_[sesh.current_img_signature])
|
| 1091 |
+
print('item_data_: ', sesh.item_data_[sesh.current_img_signature][sesh.room_type][sesh.room_style][sesh.price][sesh.Palette_ids[sesh.current_img_signature]].keys())
|
| 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 ['Pallete', 'Living Room', 'Bedroom']]
|
| 1093 |
print('item_locator_data: ', item_locator_data)
|
| 1094 |
|