Skip to content

Commit

Permalink
Merge pull request #106 from SELab-2/small_server_fix
Browse files Browse the repository at this point in the history
Kleine fix
  • Loading branch information
mathis2003 authored Mar 31, 2024
2 parents 9514c9e + 9d6d9ae commit feb3e96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def __call__(self, request):
if request.user.is_anonymous and request.path not in [
"/oauth2/login",
"/oauth2/callback",
"/.well-known/microsoft-identity-association.json",
]:
# Redirect to the login page
return redirect(settings.LOGIN_URL)
Expand Down
2 changes: 1 addition & 1 deletion api/tests/views/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_project_list_post(self):
"beschrijving": "Dit is een test project.",
"opgave_bestand": SimpleUploadedFile("file.txt", b"file_content"),
"vak": vak,
"deadline": "2024-03-31T12:40:05.317980Z",
"deadline": "2024-12-31T00:00:00.000000Z",
"extra_deadline": "",
"max_score": 20,
"zichtbaar": "true",
Expand Down

0 comments on commit feb3e96

Please sign in to comment.