From ba026323518e29c06bc6ff30b7e0e06bb4bf538c Mon Sep 17 00:00:00 2001 From: Leo VIALLON-GALINIER Date: Sat, 9 May 2020 22:17:10 +0200 Subject: [PATCH] Bug in belote count --- db.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db.py b/db.py index 11dd951..cdc6255 100644 --- a/db.py +++ b/db.py @@ -275,8 +275,10 @@ class Game(db.Model): if (cccc.index('D'+self.atout) + winnr)%4 == belote %4: if belote %2 ==0: self.points_0 += 20 + belote_0 = 20 else: self.points_1 += 20 + belote_1 = 20 else: belote = winnr + cccc.index('D'+self.atout) win, xxx = winner(cccc, self.atout)