Skip to content

Dev Bahl (db3791) - Coding Challenge Submission#820

Open
devbahl12 wants to merge 1 commit into
ColumbiaBuildLab:masterfrom
devbahl12:dev-bahl-solution
Open

Dev Bahl (db3791) - Coding Challenge Submission#820
devbahl12 wants to merge 1 commit into
ColumbiaBuildLab:masterfrom
devbahl12:dev-bahl-solution

Conversation

@devbahl12

Copy link
Copy Markdown

Submission by Dev Bahl, UNI: db3791.

Changes:

  • server.py: sort the scoreboard by score descending before returning the JSON response, so the server always sends teams in the correct order.
  • static/scoreboard.js: call display_scoreboard(result.scoreboard) inside the AJAX success callback so the UI re-renders immediately after a score increase — no page refresh needed.

- server.py: sort scoreboard descending by score before returning JSON
- scoreboard.js: call display_scoreboard in the AJAX success callback so
  the UI updates without a page refresh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant