#Note: Ask them to troubleshoot on their own and remind to print which route they’re in and print request.form etc. to see what’s happening.
-
Error: “Method Not Allowed” Correction: index.html; line 19: method = post
-
Error: “Key Error” Correction: server.py; line 35: key errors in request.form
-
Error: “Key Error” Correction: in both: server.py, line 41 leaderboard.html, line 46 method for both should be post
-
Error: “Unexpected argument ‘first’ ” Correction: Don’t pass in variables to redirect method
-
Logic Problem: How to show ranks on leaderboard Solution: Use session in both changeRanks() in server.py, and leaderboard.html
-
Logic problem: Show page only shows 3rd place name Solution: rank variable is a string, must cast as int or test against a string instead.
-
Logic Problem: Clicking show before assigning ranks throws error Solution: Various. Can handle in different ways