Skip to content

Commit

Permalink
Merge pull request #78 from questionlp/develop
Browse files Browse the repository at this point in the history
Fix f-string issues in panelist.decimal_scores
  • Loading branch information
questionlp authored Oct 6, 2024
2 parents c694c28 + 703825e commit 7781133
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
Changes
*******

2.12.1
======

Application Changes
-------------------

* Fix error with two f-strings in the ``panelist.decimal_scores`` module

2.12.0
======

Expand Down
2 changes: 1 addition & 1 deletion wwdtm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from wwdtm.scorekeeper import Scorekeeper, ScorekeeperAppearances, ScorekeeperUtility
from wwdtm.show import Show, ShowInfo, ShowInfoMultiple, ShowUtility

VERSION = "2.12.0"
VERSION = "2.12.1"


def database_version(
Expand Down
4 changes: 2 additions & 2 deletions wwdtm/panelist/decimal_scores.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def retrieve_scores_grouped_list_by_id(
return {}

for row in results:
scores[f"{Decimal(row["score"]).normalize():f}"] = row["score_count"]
scores[f"{Decimal(row['score']).normalize():f}"] = row["score_count"]

return {
"score": list(scores.keys()),
Expand Down Expand Up @@ -217,7 +217,7 @@ def retrieve_scores_grouped_ordered_pair_by_id(
return []

for row in results:
scores[f"{Decimal(row["score"]).normalize():f}"] = row["score_count"]
scores[f"{Decimal(row['score']).normalize():f}"] = row["score_count"]

return list(scores.items())

Expand Down

0 comments on commit 7781133

Please sign in to comment.