Browse Source

Small fix in name

JoostSijm 3 years ago
parent
commit
2abe1034b0
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/rival_regions_marketbot/wrapper.py

+ 1 - 3
src/rival_regions_marketbot/wrapper.py

@@ -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"]