add template snake for history
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user