I just fixed it

This commit is contained in:
2018-12-15 19:03:07 +01:00
parent 37ee3a1611
commit d0ff0ceb46
+1 -1
View File
@@ -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')