|
@@ -115,10 +115,8 @@ class Market(wrapper.Market):
|
|
|
|
|
|
def buy(self, offer, amount=None):
|
|
|
"""Buy item"""
|
|
|
- if isinstance(item, str) and item in util.ITEM_KEYS:
|
|
|
- item = util.ITEM_KEYS[item]
|
|
|
if not amount:
|
|
|
- amount = offer["ammount"]
|
|
|
+ amount = offer["amount"]
|
|
|
self.middleware.post(
|
|
|
"storage/buy/{}/{}/{}/{}".format(
|
|
|
offer["item_id"], offer["profile_id"], amount, offer["price"]
|