moved some models added cron and websocket base class
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user