moved some models added cron and websocket base class

This commit is contained in:
2019-10-31 16:13:02 +01:00
parent 36c889956f
commit 5d731c9fba
10 changed files with 224 additions and 88 deletions

View File

@@ -93,6 +93,10 @@ class Recorder(db.Model):
def get_by_name(name):
return Recorder.query.filter(Recorder.name == name).first()
@staticmethod
def get_by_identifier(identifier):
return Recorder.query.filter(Recorder.id == identifier).first()
@staticmethod
def get_all():
return Recorder.query.all()