Private
Public Access
1
0

added PowerLessThan and PowerGreaterThan

This commit is contained in:
Sander Roosendaal
2021-02-28 20:31:07 +01:00
parent 912253a7b2
commit 54cb8ff821
2 changed files with 41 additions and 6 deletions

View File

@@ -1912,8 +1912,11 @@ def plannedsession_view(request,id=0,userid=0):
r = getrequestplanrower(request,userid=userid)
ps = get_object_or_404(PlannedSession,pk=id)
jsons = json.loads(ps.steps_json)
if ps.steps_json is not None:
jsons = json.loads(ps.steps_json)
else:
jsons = {}
try:
r = VirtualRace.objects.get(id=ps.id)