Skip to content

Commit

Permalink
slight tweak to the validation tolerances
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Dec 23, 2014
1 parent 0462d15 commit e07d27a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/update_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit e07d27a

Please sign in to comment.