def get_statistics(db, statistic_id=None): """API Routes for getting statistics""" return objects_to_json(get_by_id(db, Statistic, statistic_id))
def get_room(db, room_id=None): """API Routes for getting rooms""" return objects_to_json(get_by_id(db, Room, room_id))
def get_subject(db, subject_id=None): """API Routes for getting subjects""" return objects_to_json(get_by_id(db, Subject, subject_id))
def get_quarter(db, quarter_id=None): """API Routes for getting quarters""" return objects_to_json(get_by_id(db, Quarter, quarter_id))
def get_students(db, student_id=None): """API Routes for getting students""" return objects_to_json(get_by_id(db, Student, student_id))