From a99389416d75c7ea13452e72a2c893bfe4c29848 Mon Sep 17 00:00:00 2001 From: Linh Pham Date: Sat, 5 Oct 2024 18:25:15 -0700 Subject: [PATCH 1/2] Fix f-string issues in panelist.decimal_scores --- CHANGES.rst | 8 ++++++++ wwdtm/__init__.py | 2 +- wwdtm/panelist/decimal_scores.py | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 44dac7d..973f939 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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 ====== diff --git a/wwdtm/__init__.py b/wwdtm/__init__.py index 41826c8..140338c 100644 --- a/wwdtm/__init__.py +++ b/wwdtm/__init__.py @@ -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( diff --git a/wwdtm/panelist/decimal_scores.py b/wwdtm/panelist/decimal_scores.py index 26be120..df20276 100644 --- a/wwdtm/panelist/decimal_scores.py +++ b/wwdtm/panelist/decimal_scores.py @@ -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()), @@ -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()) From 703825e82f8c50b3a09b381055d8f722513b2c9e Mon Sep 17 00:00:00 2001 From: Linh Pham Date: Sat, 5 Oct 2024 19:10:18 -0700 Subject: [PATCH 2/2] Update CHANGES.rst --- CHANGES.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 973f939..f4305f0 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -8,7 +8,7 @@ Changes Application Changes ------------------- -- Fix error with two f-strings in the ``panelist.decimal_scores`` module +* Fix error with two f-strings in the ``panelist.decimal_scores`` module 2.12.0 ======