Remove the playbook feature text from storage
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
from ..extensions import db
|
||||
from ..tools.data import declutter_results
|
||||
from ..tools.models import JsonString
|
||||
|
||||
from sqlalchemy_json import MutableJson
|
||||
@ -18,8 +19,8 @@ class Entry(db.Model):
|
||||
def __init__(self, answers:list, results:dict):
|
||||
self.id = uuid4().hex
|
||||
self.timestamp = datetime.utcnow()
|
||||
self.answers = answers
|
||||
self.results = results
|
||||
self.answers = answers.copy()
|
||||
self.results = declutter_results(results)
|
||||
|
||||
def add(self):
|
||||
db.session.add(self)
|
||||
|
Reference in New Issue
Block a user