Пример #1
0
    def get(self):
        student_id = get_jwt_identity()

        apply_info = dict(
            extension11=ExtensionApplyModel.get_extension_apply_status(
                student_id, 11),
            extension12=ExtensionApplyModel.get_extension_apply_status(
                student_id, 12),
            goingOut=GoingOutApplyModel.get_going_out_apply(student_id),
            stay=StayApplyModel.get_stay_apply_status(student_id)['value'])
        return jsonify(apply_info)
Пример #2
0
    def get(self):
        student_id = get_jwt_identity()
        going_out_applies = GoingOutApplyModel.get_going_out_apply(student_id)

        return jsonify(going_out_applies)