1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 14:38:24 +02:00

Upload syntheses

This commit is contained in:
Yohann D'ANELLO
2021-01-14 17:26:08 +01:00
parent 6f26b24359
commit c8780a6d9d
8 changed files with 110 additions and 20 deletions

View File

@ -372,7 +372,7 @@ class SynthesisView(LoginRequiredMixin, View):
"""
def get(self, request, *args, **kwargs):
filename = kwargs["filename"]
path = f"media/syhntheses/{filename}"
path = f"media/syntheses/{filename}"
if not os.path.exists(path):
raise Http404
solution = Synthesis.objects.get(file__endswith=filename)