-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite scores backends to use a single format string (#833)
* Rewrite scores backends to use a single format string Since the game status is almost always the only thing that differs, this simplifies things greatly by using a single format string and building a game_status formatter depending on format strings set for each game status type. * Use formatp on game_status * Make postponed games appear last by default * Add score formatters back to defaults * Fix conditional display of zero scores by treating them as strings
- Loading branch information
1 parent
34af135
commit c4876ed
Showing
4 changed files
with
162 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.