Update app.py
Browse files
app.py
CHANGED
|
@@ -592,7 +592,7 @@ def updateItemDisplay(seshid, budget=False, pallete_change=False):
|
|
| 592 |
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']] for _ in range(len(formats))]
|
| 593 |
items = [[data[1] for data in sesh.display_items_[sesh.current_img_signature] if data[1] not in ['Palette', 'Living Room', 'Bedroom']] for _ in range(len(formats))]
|
| 594 |
#json_data = [json.dumps({'video_format': fmt, 'number_of_items': number_of_items[i], 'room_type': sesh.room_type, 'item_locator_data': item_locator_data, 'gen_uid': i, 'responses':responses, 'items': items}) for i,fmt in enumerate(formats)]
|
| 595 |
-
json_data = [json.dumps({'video_format': fmt, 'number_of_items': number_of_items[i], 'room_type': sesh.room_type, 'item_locator_data': item_locator_data, 'gen_uid': i, 'items': items}) for i,fmt in enumerate(formats)]
|
| 596 |
responses = asyncio.run(main_post(urls, headers, json_data, timeout=.2))
|
| 597 |
#responses = asyncio.run(main_post(urls, headers, json_data, timeout=3))
|
| 598 |
print('*-/*/-*-updateDisplay: dumped scriptgen_promise: ', responses)
|
|
|
|
| 592 |
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']] for _ in range(len(formats))]
|
| 593 |
items = [[data[1] for data in sesh.display_items_[sesh.current_img_signature] if data[1] not in ['Palette', 'Living Room', 'Bedroom']] for _ in range(len(formats))]
|
| 594 |
#json_data = [json.dumps({'video_format': fmt, 'number_of_items': number_of_items[i], 'room_type': sesh.room_type, 'item_locator_data': item_locator_data, 'gen_uid': i, 'responses':responses, 'items': items}) for i,fmt in enumerate(formats)]
|
| 595 |
+
json_data = [json.dumps({'video_format': fmt, 'number_of_items': number_of_items[i], 'room_type': sesh.room_type, 'item_locator_data': item_locator_data[i], 'gen_uid': i, 'items': items}) for i,fmt in enumerate(formats)]
|
| 596 |
responses = asyncio.run(main_post(urls, headers, json_data, timeout=.2))
|
| 597 |
#responses = asyncio.run(main_post(urls, headers, json_data, timeout=3))
|
| 598 |
print('*-/*/-*-updateDisplay: dumped scriptgen_promise: ', responses)
|