summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.py b/utils.py
index 8d172fa..0e870d5 100644
--- a/utils.py
+++ b/utils.py
@@ -77,9 +77,9 @@ class ItemLog:
def __init__(self):
self.log_file = 'data/logs/sale.log'
- def add_item(self, item_id, amount, price):
+ def add_item(self, item_id, amount, price, name):
file_node = open(self.log_file, 'a')
- file_node.write(str(item_id)+" "+str(amount)+" "+str(price)+" "+str(time.time())+"\n")
+ file_node.write(str(item_id)+" "+str(amount)+" "+str(price)+" "+str(time.time())+" "+name+"\n")
file_node.close()
class TraderState: