From 84b762877f003a1acae273cad218a6ade9b60ca6 Mon Sep 17 00:00:00 2001 From: MichaelFitzurka Date: Wed, 27 Apr 2022 10:15:53 -0400 Subject: [PATCH] Changes as per comments --- comictaggerlib/settingswindow.py | 2 +- comictaggerlib/taggerwindow.py | 2 +- comictaggerlib/ui/TemplateHelp.ui | 2 +- comictaggerlib/ui/taggerwindow.ui | 13 ++----------- 4 files changed, 5 insertions(+), 14 deletions(-) diff --git a/comictaggerlib/settingswindow.py b/comictaggerlib/settingswindow.py index 5f6cd18..f5ccaa8 100644 --- a/comictaggerlib/settingswindow.py +++ b/comictaggerlib/settingswindow.py @@ -105,7 +105,7 @@ Accepts the following variables: {black_and_white} (boolean) {page_count} (integer) {maturity_rating} (string) -{community_rating} (float) +{community_rating} (string) {story_arc} (string) {series_group} (string) {scan_info} (string) diff --git a/comictaggerlib/taggerwindow.py b/comictaggerlib/taggerwindow.py index ba4880a..caa6ff5 100644 --- a/comictaggerlib/taggerwindow.py +++ b/comictaggerlib/taggerwindow.py @@ -888,7 +888,7 @@ Please choose options below, and select OK. md.notes = self.teNotes.toPlainText() md.maturity_rating = self.cbMaturityRating.currentText() - md.community_rating = utils.xlate("{:.1f}".format(self.dsbCommunityRating.value())) + md.community_rating = utils.xlate(self.dsbCommunityRating.cleanText()) if md.community_rating == "0.0": md.community_rating = None diff --git a/comictaggerlib/ui/TemplateHelp.ui b/comictaggerlib/ui/TemplateHelp.ui index afe3939..56cec15 100644 --- a/comictaggerlib/ui/TemplateHelp.ui +++ b/comictaggerlib/ui/TemplateHelp.ui @@ -91,7 +91,7 @@ tr:nth-child(even) { <tr><td>{black_and_white}</td><td>boolean</td></tr> <tr><td>{page_count}</td><td>integer</td></tr> <tr><td>{maturity_rating}</td><td>string</td></tr> - <tr><td>{community_rating}</td><td>float</td></tr> + <tr><td>{community_rating}</td><td>string</td></tr> <tr><td>{story_arc}</td><td>string</td></tr> <tr><td>{series_group}</td><td>string</td></tr> <tr><td>{scan_info}</td><td>string</td></tr> diff --git a/comictaggerlib/ui/taggerwindow.ui b/comictaggerlib/ui/taggerwindow.ui index 0d67f8c..90d5c31 100644 --- a/comictaggerlib/ui/taggerwindow.ui +++ b/comictaggerlib/ui/taggerwindow.ui @@ -990,21 +990,12 @@ - - - 0 - 0 - - - + 80 - 16777215 + 0 - - false - 1