I just fixed it

master
Davide Bongiovanni 6 years ago
parent 37ee3a1611
commit d0ff0ceb46

@ -149,7 +149,7 @@ def addme():
for row in r: for row in r:
results.append(dict(row)) results.append(dict(row))
if not results['is_eater']: if not results[0]['is_eater']:
return render_template('appresponse.html', message='Have a nice meal ' + meal_id + " mister " + str(current_user.name) ) return render_template('appresponse.html', message='Have a nice meal ' + meal_id + " mister " + str(current_user.name) )
else: else:
return render_template('appresponse.html', message='You are already a registered eater') return render_template('appresponse.html', message='You are already a registered eater')

Loading…
Cancel
Save