summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorMeistache <crie.fernanda@gmail.com>2015-02-08 19:18:52 -0200
committerMeistache <crie.fernanda@gmail.com>2015-02-08 19:18:52 -0200
commita1af615d49a9565c4f656a20337edb273e2c960a (patch)
tree52b15a031bf4209283258fb33e5bc5fcc3d4dd07 /utils.py
parentbeaf7f36bb2c609de5fcad1c06e37e26147c0cb0 (diff)
downloadmanamarket-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.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/utils.py b/utils.py
index 52d51b6..542b7af 100644
--- a/utils.py
+++ b/utils.py
@@ -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):