From c470b709a57d256922387698e284e1843390b7f8 Mon Sep 17 00:00:00 2001 From: John McCann Cunniff Jr Date: Wed, 17 Apr 2024 11:54:48 -0400 Subject: [PATCH] CLN lint --- api/anubis/views/admin/courses.py | 2 -- api/anubis/views/super/students.py | 9 ++++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/api/anubis/views/admin/courses.py b/api/anubis/views/admin/courses.py index 7a295bafd..000902c89 100644 --- a/api/anubis/views/admin/courses.py +++ b/api/anubis/views/admin/courses.py @@ -2,10 +2,8 @@ from sqlalchemy.exc import DataError, IntegrityError from anubis.github.team import add_github_team_member, remote_github_team_member -from anubis.k8s.pvc.get import get_user_pvc from anubis.lms.courses import assert_course_superuser, course_context, valid_join_code from anubis.models import Course, InCourse, ProfessorForCourse, TAForCourse, User, db -from anubis.models.id import default_id_factory from anubis.rpc.enqueue import enqueue_bulk_create_students from anubis.utils.auth.http import require_admin, require_superuser from anubis.utils.auth.user import current_user diff --git a/api/anubis/views/super/students.py b/api/anubis/views/super/students.py index 36cac392b..3bf9bcc7a 100644 --- a/api/anubis/views/super/students.py +++ b/api/anubis/views/super/students.py @@ -2,11 +2,11 @@ from anubis.lms.students import get_students from anubis.models import User, db +from anubis.rpc.enqueue import enqueue_reap_pvc_user from anubis.utils.auth.http import require_superuser from anubis.utils.data import req_assert from anubis.utils.http import success_response from anubis.utils.http.decorators import json_response, json_endpoint -from anubis.rpc.enqueue import enqueue_reap_pvc_user students_ = Blueprint("super-students", __name__, url_prefix="/super/students") @@ -149,7 +149,7 @@ def super_students_delete_pvc(id: str): enqueue_reap_pvc_user(id) return success_response({ - "status": f"Volume deletion scheduled for user: {other.netid}.", + "status": f"Volume deletion scheduled for user: {other.netid}.", "variant": "warning" }) @@ -168,7 +168,7 @@ def super_students_add(netid: str, name: str): if user is not None: return success_response({ "status": f"Student already exists {netid}", - "user": user.data, + "user": user.data, }) user = User(netid=netid.strip(), name=name.strip()) @@ -177,6 +177,5 @@ def super_students_add(netid: str, name: str): return success_response({ "status": f"Added student {netid}", - "user": user.data, + "user": user.data, }) -