Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
xerbalind committed May 22, 2024
1 parent b2945ca commit 9591c0c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/src/group/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async def join_group(
if len(group.members) >= project.capacity:
raise MaxCapacity()

groups = await retrieve_groups_by_user(user,db)
groups = await retrieve_groups_by_user(user, db)
if any([group.project_id == g.project_id for g in groups]):
raise AlreadyInGroupOfProject()

Expand Down
1 change: 1 addition & 0 deletions backend/src/group/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def __init__(self):
"""Raised when user wants to join group at max capacity"""
super().__init__(status_code=403, detail="Group at max capacity")


class AlreadyInGroupOfProject(HTTPException):
def __init__(self):
"""Raised when person is already in another group of the project"""
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/components/form_elements/FilesInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ function onAddFilesClick() {
function updateFiles(event: Event) {
const files = (event.target as HTMLInputElement).files!;
const unique_files = Array.from(files).filter((file) => !inputFiles.value.map(file => file.name).includes(file.name));
const unique_files = Array.from(files).filter(
(file) => !inputFiles.value.map((file) => file.name).includes(file.name)
);
inputFiles.value.push(...unique_files);
}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/home/listcontent/SubjectItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const sortedInstructors = computed(() => {
return b.is_teacher - a.is_teacher;
});
});
</script>

<style scoped>
Expand Down
5 changes: 4 additions & 1 deletion frontend/src/components/project/ProjectSideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ const isTeacher = computed(() => {
if (!user.value || !instructors.value) {
return false;
}
return instructors.value.some((instructor) => instructor.uid === user.value.uid) || user.value.is_admin;
return (
instructors.value.some((instructor) => instructor.uid === user.value.uid) ||
user.value.is_admin
);
});
const isSoloProject = computed(() => project.value.capacity === 1);
Expand Down

0 comments on commit 9591c0c

Please sign in to comment.