diff --git a/src/bets.py b/src/bets.py index 330120b..9bfa85f 100644 --- a/src/bets.py +++ b/src/bets.py @@ -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"))) diff --git a/src/lib/func_aux.py b/src/lib/func_aux.py index e4f708f..92c4310 100644 --- a/src/lib/func_aux.py +++ b/src/lib/func_aux.py @@ -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: