Private
Public Access
1
0

now seems to behave

This commit is contained in:
Sander Roosendaal
2021-03-01 11:56:48 +01:00
parent 0d86b0d662
commit b1a9736aea
6 changed files with 11 additions and 13 deletions

View File

@@ -13,10 +13,9 @@ from rq.job import Job
def download_fit(request,filename=''):
r = getrower(request.user)
pss = PlannedSession.objects.filter(fitfile=filename)
print(filename,pss)
if len(pss) != 1:
raise Http404("Could not find the required file")