diff options
-rw-r--r-- | storage.py | 2 | ||||
-rw-r--r-- | tradey.py | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -46,7 +46,7 @@ class Storage: if (item.amount > MAX_AMOUNT - self.storage[index].amount): return -10 self.storage[index].amount += item.amount - return 0 + return index index = len(self.storage) self.storage[index] = item @@ -177,6 +177,7 @@ class DelistedTree(ItemTree): user.set("itemId", str(item_id)) user.set("amount", str(amount)) user.set("uid", str(self.getId())) + self.save() def saveData(commitmessage = "commit"): # This assumes the current working directory is the tradey directory. |