Private
Public Access
1
0

Merge branch 'hotfix/v20.7.6'

This commit is contained in:
2024-04-08 19:56:52 +02:00
3 changed files with 11 additions and 6 deletions

View File

@@ -1875,7 +1875,9 @@ def dataprep(rowdatadf, id=0, bands=True, barchart=True, otwpower=True,
except FileNotFoundError:
df2 = dd.from_pandas(df, npartitions=1)
df2.to_parquet(filename, engine='fastparquet', compression='GZIP')
except FileExistsError:
os.remove(filename)
df.to_parquet(filename, engine='fastparquet', compression='GZIP')
return data

Binary file not shown.

View File

@@ -370,11 +370,14 @@ def course_view(request, id=0):
coursecompleted=True).order_by("duration", "-distance")
# get own training results
ownrecords = CourseTestResult.objects.filter(
courseid = course.id,
userid = r.id,
coursecompleted=True
).order_by("duration", "-distance")
if not request.user.is_anonymous:
ownrecords = CourseTestResult.objects.filter(
courseid = course.id,
userid = r.id,
coursecompleted=True
).order_by("duration", "-distance")
else:
ownrecords = []
if request.user.is_authenticated:
notsharing = Rower.objects.filter(