From 623ad5cd5cf0e7783d3f31d5ab6d32c3c4488cca Mon Sep 17 00:00:00 2001 From: Lint Action Date: Tue, 1 Apr 2025 14:05:05 +0000 Subject: [PATCH] style: fix linting issues met Prettier --- frontend/src/controllers/assignments.ts | 7 +++---- frontend/src/controllers/classes.ts | 4 +--- frontend/src/controllers/groups.ts | 3 +-- frontend/src/controllers/submission.ts | 2 +- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/frontend/src/controllers/assignments.ts b/frontend/src/controllers/assignments.ts index 5b78f23c..7b217b0e 100644 --- a/frontend/src/controllers/assignments.ts +++ b/frontend/src/controllers/assignments.ts @@ -21,16 +21,15 @@ export class AssignmentController extends BaseController { return this.delete<{ assignment: any }>(`/${num}`); } - getSubmissions(assignmentNumber: number, full = true) { return this.get<{ submissions: any[] }>(`/${assignmentNumber}/submissions`, { full }); } getQuestions(assignmentNumber: number, full = true) { - return this.get<{ questions: any[]}>(`/${assignmentNumber}/questions`, { full }); + return this.get<{ questions: any[] }>(`/${assignmentNumber}/questions`, { full }); } getGroups(assignmentNumber: number, full = true) { - return this.get<{ groups: any[]}>(`/${assignmentNumber}/groups`, { full }); + return this.get<{ groups: any[] }>(`/${assignmentNumber}/groups`, { full }); } -} \ No newline at end of file +} diff --git a/frontend/src/controllers/classes.ts b/frontend/src/controllers/classes.ts index 05fc3740..0598aba9 100644 --- a/frontend/src/controllers/classes.ts +++ b/frontend/src/controllers/classes.ts @@ -1,6 +1,5 @@ import { BaseController } from "./base-controller"; - export class ClassController extends BaseController { constructor() { super("class"); @@ -22,7 +21,6 @@ export class ClassController extends BaseController { return this.delete<{ class: any }>(`/${id}`); } - getStudents(id: string, full = true) { return this.get<{ students: any[] }>(`/${id}/students`, { full }); } @@ -34,4 +32,4 @@ export class ClassController extends BaseController { getAssignments(id: string, full = true) { return this.get<{ assignments: any[] }>(`/${id}/assignments`, { full }); } -} \ No newline at end of file +} diff --git a/frontend/src/controllers/groups.ts b/frontend/src/controllers/groups.ts index 0ec13e86..2dac5346 100644 --- a/frontend/src/controllers/groups.ts +++ b/frontend/src/controllers/groups.ts @@ -21,7 +21,6 @@ export class GroupController extends BaseController { return this.delete<{ group: any }>(`/${num}`); } - getSubmissions(groupNumber: number, full = true) { return this.get<{ groups: any[] }>(`/${groupNumber}/submissions`, { full }); } @@ -29,4 +28,4 @@ export class GroupController extends BaseController { getQuestions(groupNumber: number, full = true) { return this.get<{ questions: any[] }>(`/${groupNumber}/questions`, { full }); } -} \ No newline at end of file +} diff --git a/frontend/src/controllers/submission.ts b/frontend/src/controllers/submission.ts index 04f83471..31ad6606 100644 --- a/frontend/src/controllers/submission.ts +++ b/frontend/src/controllers/submission.ts @@ -20,4 +20,4 @@ export class SubmissionController extends BaseController { deleteSubmission(submissionNumber: number) { return this.delete(`/${submissionNumber}`); } -} \ No newline at end of file +}