Skip to content

Build_Lab_PR_mikeliao#778

Open
mikeliaohm wants to merge 1 commit intoColumbiaBuildLab:masterfrom
mikeliaohm:master
Open

Build_Lab_PR_mikeliao#778
mikeliaohm wants to merge 1 commit intoColumbiaBuildLab:masterfrom
mikeliaohm:master

Conversation

@mikeliaohm
Copy link

Pull Request: Fix DOM Re-rendering on Score Updates

Changes

  • Added DOM re-rendering when scores are updated via the + button
  • Fixed type conversion for team_id to ensure proper integer comparison
  • Implemented automatic scoreboard sorting after score updates
  • Code formatting improvements (indentation consistency)

Technical Details

Backend (server.py):

  • Convert team_id to int for reliable comparison
  • Sort scoreboard by score (descending) after each update

Frontend (scoreboard.js):

  • Call display_scoreboard(result.scoreboard) in AJAX success handler

Now the UI updates in real-time when scores change.

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