cleanup
This commit is contained in:
parent
6241264147
commit
1d6d5da86e
2 changed files with 11 additions and 6 deletions
|
@ -22,6 +22,13 @@ class TableNotification(Base):
|
|||
|
||||
__mapper_args__ = {"eager_defaults": True}
|
||||
|
||||
@classmethod
|
||||
def insert(cls, type_of_error, message, medium, success):
|
||||
with Session(engine) as session:
|
||||
n = TableNotification(type=type_of_error, message=message, medium=medium, success=success)
|
||||
session.add(n)
|
||||
session.commit()
|
||||
|
||||
@classmethod
|
||||
def get_won_notifications_today(cls):
|
||||
with Session(engine) as session:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue