From a1af615d49a9565c4f656a20337edb273e2c960a Mon Sep 17 00:00:00 2001 From: Meistache Date: Sun, 8 Feb 2015 19:18:52 -0200 Subject: Changes regarding storage implementation on ManaMarket --- utils.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'utils.py') 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): -- cgit v1.2.3-60-g2f50