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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1094,7 +1094,7 @@ def loadColorAndCharacter(text, seshid):
1094
 
1095
  url = 'https://dreamdemo.pythonanywhere.com/shopping'
1096
  sesh.gen_uid = str(time.time())
1097
- valid_data = {'gen_uid': sesh.gen_uid, 'product_pd_counts': sesh.product_pd_counts, 'responses':[r.decode('ISO-8859-1') if type(r) != type(None) else r for r in sesh.responses]}
1098
  headers = {'Content-type': 'application/json', 'Accept': 'text/plain'}
1099
  r = requests.post(url, data=json.dumps(valid_data), headers=headers)
1100
  jsondata = json.loads(r.content)
 
1094
 
1095
  url = 'https://dreamdemo.pythonanywhere.com/shopping'
1096
  sesh.gen_uid = str(time.time())
1097
+ valid_data = {'gen_uid': sesh.gen_uid, 'item_locator_data': item_locator_data, 'product_pd_counts': sesh.product_pd_counts, 'responses':[r.decode('ISO-8859-1') if type(r) != type(None) else r for r in sesh.responses]}
1098
  headers = {'Content-type': 'application/json', 'Accept': 'text/plain'}
1099
  r = requests.post(url, data=json.dumps(valid_data), headers=headers)
1100
  jsondata = json.loads(r.content)