From 64ce18cb748342a973f729afd93e7c05e1c5ef87 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 26 Oct 2011 17:51:38 +0200 Subject: [PATCH] client-barcode: Save empty bulkbuy going over the line --- client-barcode/freitagslib/network.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client-barcode/freitagslib/network.py b/client-barcode/freitagslib/network.py index d196f19..3dff65b 100644 --- a/client-barcode/freitagslib/network.py +++ b/client-barcode/freitagslib/network.py @@ -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,