Skip to content

Commit

Permalink
1. Fixed color of pending bets
Browse files Browse the repository at this point in the history
  • Loading branch information
soker90 committed Feb 10, 2018
1 parent b25bc05 commit 19e4a62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bets.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def initTree(self):
player2, pick, "", market, tipster, str(stake), str(one) + self.coin, str(bet) + self.coin,
str(quota), str(result), str(profit) + self.coin])

item = paint_row(item, profit, result)
item = paint_row(item, profit, i[13])

if os.path.isfile(expanduser("~") + "/.betcon/resources/sports/" + str(i[2]) + ".png"):
item.setBackground(3, QBrush(QPixmap(expanduser("~") + "/.betcon/resources/sports/" + str(i[2]) + ".png")))
Expand Down
2 changes: 1 addition & 1 deletion src/lib/func_aux.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def paint_row(item, profit, result=None):
profit = float(profit[:-1])

profit = float(profit)
if result == str(0):
if result == "0":
for j in range(18):
item.setBackground(j, QBrush(Qt.yellow))
else:
Expand Down

0 comments on commit 19e4a62

Please sign in to comment.