Browse Source

client-barcode: Save empty bulkbuy going over the line

master
Sebastian Pipping 11 years ago
parent
commit
64ce18cb74
  1. 2
      client-barcode/freitagslib/network.py

2
client-barcode/freitagslib/network.py

@ -84,6 +84,8 @@ def buy_item(item_id, what_about_it, user_name): @@ -84,6 +84,8 @@ def buy_item(item_id, what_about_it, user_name):
def bulk_buy(buycommands, user_name):
item_ids = tuple(e.item_id() for e in buycommands if e.includes_commodity())
deposit_ids = tuple(e.item_id() for e in buycommands if e.includes_deposit())
if not item_ids and not deposit_ids:
return
request_dict = {
'user':user_name,

Loading…
Cancel
Save