Example #1
0
def get_room(room_name: str):
    return Room.objects(room_name=room_name).first()
Example #2
0
def check_room_exists(room_id: str):
    room = Room.objects(id=ObjectId(room_id)).first()
    if room:
        return True
    return False