add template snake for history

This commit is contained in:
2024-04-01 05:16:20 +02:00
parent 7a0d8b8b1b
commit dde746900c
+12
View File
@@ -0,0 +1,12 @@
class TemplateSnake:
def __init__(self):
self.history = []
def clear_history(self):
self.history = []
def add_to_history(self, data:dict):
self.history.append(data)
def get_history(self):
return self.history