diff --git a/commands/update_gui.py b/commands/update_gui.py index 7fe44a2f..64aa6797 100644 --- a/commands/update_gui.py +++ b/commands/update_gui.py @@ -214,7 +214,7 @@ def checkValueAgainstStats(self, widget, stats): minCr, avgCr, maxCr = stats widget.configure(bg = 'white') - if cr < minCr and cr < int(avgCr * 0.7): + if cr < int(minCr / 1.01) and cr < int(avgCr * 0.7): widget.bell() ok = mbox.askokcancel( "Very low price", @@ -232,7 +232,7 @@ def checkValueAgainstStats(self, widget, stats): return False widget.configure(bg = '#ff8080') - if cr > maxCr and int(cr * 0.7) > avgCr: + if cr >= (maxCr * 1.01) and int(cr * 0.7) > avgCr: widget.bell() ok = mbox.askokcancel( "Very high price",