def remove_course(course_id): Course.remove(course_id) return jsonify(success=True)
def run(self, course_id, **kwargs): from models.models import Course Course.remove(int(course_id), True)