Compare commits

..

No commits in common. '18d8d2ede9a18e7a12995b60cc6c9b25581c138c' and 'baeed56490357009c2156f9b94ae12ea11def960' have entirely different histories.

@ -148,9 +148,8 @@ def addme():
results = []
for row in r:
results.append(dict(row))
if not results[0]['is_eater'] == 'True':
query = "UPDATE meals SET eaters = array_cat(eaters, '{:user_id}') where id=:meal_id;"
r = db_engine.execute(text(query), user_id=current_user.user_id, meal_id = meal_id)
if not results[0]['is_eater']:
return render_template('appresponse.html', message='Have a nice meal ' + meal_id + " mister " + str(current_user.name) )
else:
return render_template('appresponse.html', message='You are already a registered eater')

Loading…
Cancel
Save