summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2015-08-27 22:25:55 +0200
committeremkael <emkael@tlen.pl>2015-08-27 22:25:55 +0200
commit19b6737916ecec8992559248fb0b5d4d75c37b74 (patch)
tree4c4065bc1546b94db850d0ea47b367fe14e03e7d
parent91cdc24479abadb4e917e7ac25c387ed16f273c0 (diff)
* checking for ffully erased bidding
-rw-r--r--bidding_data.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bidding_data.py b/bidding_data.py
index 4fe33ed..9bcd246 100644
--- a/bidding_data.py
+++ b/bidding_data.py
@@ -63,6 +63,8 @@ class JFRBidding:
bid_counter,
None
)
+ if len(bids[board_no][table_no][round_no]) == 0:
+ bids[board_no][table_no].pop(round_no, None)
else:
bids[board_no][table_no][round_no][bid_counter] = {
'direction': bid[6],