Skip to content

Commit

Permalink
Better presentation of 'DUMB'
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Mar 26, 2015
1 parent 8e29bdc commit de25266
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions misc/checkpricebounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ def remediation(item, compare, value):
deletion = (
"DELETE FROM {} "
"WHERE item_id = {} "
"AND price {} {}".format(
"AND price > 0 AND price {} {}".format(
table, item.ID, compare, value
))
deletions.append((deletion, "{}".format(item.dbname)))
count = 0
for (stnID,) in tdb.query("""
SELECT station_id FROM {}
WHERE item_id = {} AND price {} {}
WHERE item_id = {} AND price > 0 AND price {} {}
""".format(
table, item.ID, compare, value,
)):
Expand Down Expand Up @@ -125,7 +125,7 @@ def remediation(item, compare, value):
mask.format(
numPrices,
item.dbname,
prices[0] if prices[0] < lowCutoff else '-',
prices[0] if prices[0] < min(lowCutoff, cutoff) else '-',
lowCutoff,
low,
mid,
Expand Down

0 comments on commit de25266

Please sign in to comment.