diff options
author | Meistache <crie.fernanda@gmail.com> | 2015-03-02 00:53:27 -0300 |
---|---|---|
committer | Meistache <crie.fernanda@gmail.com> | 2015-03-02 00:53:27 -0300 |
commit | b7e3823588ae9354daf5fc0a0cbf27b699afb7d5 (patch) | |
tree | 371ba1d897a3bcee4dba4e2123485b64790d0b09 | |
parent | 96ce897f5a2173ca0528f7fb7cfb1d22ea69af55 (diff) | |
download | manamarket-b7e3823588ae9354daf5fc0a0cbf27b699afb7d5.tar.gz manamarket-b7e3823588ae9354daf5fc0a0cbf27b699afb7d5.tar.bz2 manamarket-b7e3823588ae9354daf5fc0a0cbf27b699afb7d5.tar.xz manamarket-b7e3823588ae9354daf5fc0a0cbf27b699afb7d5.zip |
"Buy or Getback"github/fork/Meistache/storage
-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. |