Fix: Bulkbuying requires now items to be bought.

This commit is contained in:
seba 2011-10-11 01:34:07 +02:00
父節點 f6f0a0f114
當前提交 7f484ffc52
共有 1 個檔案被更改,包括 6 行新增0 行删除

查看文件

@ -145,6 +145,12 @@ class BuyableItemHandler(BaseHandler):
ret.write("\nThe items/deposists parameter have to be a list.\n")
return ret
if len(itemList) == 0:
ret = rc.BAD_REQUEST
ret.write("\nYour request contains no items/deposits.\n")
return ret
ids = {}
for item in itemList:
if not ids.has_key(item):