Update app.py
Browse files
app.py
CHANGED
|
@@ -578,7 +578,7 @@ def updateItemDisplay(seshid, budget=False, pallete_change=False):
|
|
| 578 |
responses = [r.decode('ISO-8859-1') if type(r) != type(None) else r for r in sesh.responses]
|
| 579 |
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']]
|
| 580 |
json_data = [json.dumps({'response': responses[i], 'item_locator_data': item_locator_data[i]}) for i,url in enumerate(urls)]
|
| 581 |
-
responses = asyncio.run(main_post(urls, headers, json_data, timeout
|
| 582 |
print('*-/*/-*-updateDisplay: dumped store_shop: ', item_locator_data)
|
| 583 |
|
| 584 |
"""formats = ['Youtube Long-Form', 'Youtube Short-Form', 'Facebook Long-Form', 'Instagram Reel', 'Tiktok', 'LinkedIn']
|
|
|
|
| 578 |
responses = [r.decode('ISO-8859-1') if type(r) != type(None) else r for r in sesh.responses]
|
| 579 |
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']]
|
| 580 |
json_data = [json.dumps({'response': responses[i], 'item_locator_data': item_locator_data[i]}) for i,url in enumerate(urls)]
|
| 581 |
+
responses = asyncio.run(main_post(urls, headers, json_data, timeout=1.25))
|
| 582 |
print('*-/*/-*-updateDisplay: dumped store_shop: ', item_locator_data)
|
| 583 |
|
| 584 |
"""formats = ['Youtube Long-Form', 'Youtube Short-Form', 'Facebook Long-Form', 'Instagram Reel', 'Tiktok', 'LinkedIn']
|