Skip to content

Commit

Permalink
Merge pull request #48 from questionlp/develop
Browse files Browse the repository at this point in the history
Add support for new panelist Lightning round start and correct decimal columns
  • Loading branch information
questionlp authored Sep 6, 2023
2 parents 1181eaa + 85980ee commit 814cf75
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 6 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changes

## 5.5.0

### Application Changes

- Add support for displaying panelist Lightning Fill-in-the-Blank starting score and correct answers stored in the corresponding new table columns. This is handled via version 2.3.0 of the `wwdtm` library and depends on setting the `use_decimal_scores` setting in the `config.json` application configuration file.

### Component Changes

- Upgrade wwdtm from 2.2.0 to 2.3.0

## 5.4.0

### Application Changes
Expand Down
3 changes: 2 additions & 1 deletion app/panelists/templates/panelists/details.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ <h2><a href="{{ url_for('panelists.details',
{% if appearance.score_decimal != None %}
{{ "{:f}".format(appearance.score_decimal.normalize()) }}
{% if appearance.lightning_round_start != None and appearance.lightning_round_correct != None %}
({{ appearance.lightning_round_start}} / {{ appearance.lightning_round_correct}})
({{ "{:f}".format(appearance.lightning_round_start_decimal.normalize()) if appearance.lightning_round_start_decimal else appearance.lightning_round_start }}
/ {{ "{:f}".format(appearance.lightning_round_correct_decimal.normalize()) if appearance.lightning_round_correct_decimal else appearance.lightning_round_correct }})
{% endif %}
{% if appearance.rank %}
<span class="panelist-rank">[{{ rank_map[appearance.rank] }}]</span>
Expand Down
3 changes: 2 additions & 1 deletion app/shows/templates/shows/all_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ <h2><a href="{{ url_for('shows.year_month_day',
<a href="{{ url_for('panelists.details',
panelist_slug=panelist.slug) }}">{{ panelist.name }}</a> {{ "{:f}".format(panelist.score_decimal.normalize()) }}
{% if panelist.lightning_round_start != None and panelist.lightning_round_correct != None %}
({{ panelist.lightning_round_start}} / {{ panelist.lightning_round_correct}})
({{ "{:f}".format(panelist.lightning_round_start_decimal.normalize()) if panelist.lightning_round_start_decimal else panelist.lightning_round_start }}
/ {{ "{:f}".format(panelist.lightning_round_correct_decimal.normalize()) if panelist.lightning_round_correct_decimal else panelist.lightning_round_correct }})
{% endif %}
{% elif panelist.score %}
<a href="{{ url_for('panelists.details',
Expand Down
3 changes: 2 additions & 1 deletion app/shows/templates/shows/details.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ <h2><a href="{{ url_for('shows.year_month_day',
<a href="{{ url_for('panelists.details',
panelist_slug=panelist.slug) }}">{{ panelist.name }}</a> {{ "{:f}".format(panelist.score_decimal.normalize()) }}
{% if panelist.lightning_round_start != None and panelist.lightning_round_correct != None %}
({{ panelist.lightning_round_start}} / {{ panelist.lightning_round_correct}})
({{ "{:f}".format(panelist.lightning_round_start_decimal.normalize()) if panelist.lightning_round_start_decimal else panelist.lightning_round_start }}
/ {{ "{:f}".format(panelist.lightning_round_correct_decimal.normalize()) if panelist.lightning_round_correct_decimal else panelist.lightning_round_correct }})
{% endif %}
{% elif panelist.score %}
<a href="{{ url_for('panelists.details',
Expand Down
2 changes: 1 addition & 1 deletion app/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# Copyright (c) 2018-2023 Linh Pham
# stats.wwdt.me is released under the terms of the Apache License 2.0
"""Application Version for Wait Wait Stats Page"""
APP_VERSION = "5.4.0"
APP_VERSION = "5.5.0"
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Flask==2.3.2
gunicorn==20.1.0
Markdown==3.4.3

wwdtm==2.2.0
wwdtm==2.3.0
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Flask==2.3.2
gunicorn==20.1.0
Markdown==3.4.3

wwdtm==2.2.0
wwdtm==2.3.0

0 comments on commit 814cf75

Please sign in to comment.