diff options
author | Meistache <crie.fernanda@gmail.com> | 2015-02-08 19:18:52 -0200 |
---|---|---|
committer | Meistache <crie.fernanda@gmail.com> | 2015-02-08 19:18:52 -0200 |
commit | a1af615d49a9565c4f656a20337edb273e2c960a (patch) | |
tree | 52b15a031bf4209283258fb33e5bc5fcc3d4dd07 /utils.py | |
parent | beaf7f36bb2c609de5fcad1c06e37e26147c0cb0 (diff) | |
download | manamarket-a1af615d49a9565c4f656a20337edb273e2c960a.tar.gz manamarket-a1af615d49a9565c4f656a20337edb273e2c960a.tar.bz2 manamarket-a1af615d49a9565c4f656a20337edb273e2c960a.tar.xz manamarket-a1af615d49a9565c4f656a20337edb273e2c960a.zip |
Changes regarding storage implementation on ManaMarket
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -86,6 +86,15 @@ class ItemLog: file_node.write(str(item_id)+" "+str(amount)+" "+str(price)+" "+str(time.time())+" "+name+"\n") file_node.close() +class DelistedLog: + def __init__(self): + self.log_file = 'data/logs/delisted.log' + + def add_item(self, item_id, amount, name): + file_node = open(self.log_file, 'a') + file_node.write(str(item_id)+" "+str(amount)+" "+str(time.time())+" "+name+"\n") + file_node.close() + class TraderState: """ Stores information regarding a trade request""" def __init__(self): |