now rooms, recorders and recorder models get initialized in DB
This commit is contained in:
@@ -44,6 +44,15 @@ class Room(db.Model):
|
||||
"""
|
||||
return Room.query.filter(Room.name == name).first()
|
||||
|
||||
@staticmethod
|
||||
def get_by_building_number(building_number):
|
||||
"""
|
||||
Find group by name
|
||||
:param name:
|
||||
:return:
|
||||
"""
|
||||
return Room.query.filter(Room.building_number == building_number)
|
||||
|
||||
@staticmethod
|
||||
def get_all():
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user