client-barcode: Allow empty commit (bug #17, broken by introduction of bulkbuy)

master
Sebastian Pipping 13 years ago
parent 64ce18cb74
commit 621f8017c8

@ -268,6 +268,9 @@ class Status:
assert(self.logged_in())
def compress_deposit_commands():
if not self.transfers:
return
dummy, initial_balance = self.transfers[0]
balance_before = initial_balance
compressed_deposit = DepositCommand(Decimal('0'))
@ -283,6 +286,9 @@ class Status:
self.transfers = others
def process_buy_commands_combined():
if not self.transfers:
return
# Compress BuyCommands, use a single bulkbuy
dummy, initial_balance = self.transfers[0]
balance_before = initial_balance

Loading…
Cancel
Save