fixes
This commit is contained in:
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
@@ -2109,8 +2109,11 @@ class SavedAnalysisView(UserPassesTestMixin, View):
|
||||
self.searchform = SearchForm(initial={'q': query})
|
||||
date_initial = {}
|
||||
if startdate:
|
||||
self.analyses = self.analyses.filter(date__gte=startdate)
|
||||
date_initial['startdate'] = startdate
|
||||
try:
|
||||
self.analyses = self.analyses.filter(date__gte=startdate)
|
||||
date_initial['startdate'] = startdate
|
||||
except ValidationError:
|
||||
messages.error(request,"{startdate} is not a valid start date".format(startdate=startdate))
|
||||
if enddate:
|
||||
self.analyses = self.analyses.filter(date__lte=enddate)
|
||||
date_initial['enddate'] = enddate
|
||||
|
||||
@@ -192,7 +192,7 @@ def api_get_dataframe(startdatetime, df):
|
||||
' longitude': longitude,
|
||||
})
|
||||
|
||||
return 200, "", data
|
||||
return 200, "Success", data
|
||||
|
||||
|
||||
@login_required()
|
||||
|
||||
@@ -1833,10 +1833,12 @@ def virtualevent_compare_view(request, id=0):
|
||||
id=id))
|
||||
except Workout.DoesNotExist: # pragma: no cover
|
||||
pass
|
||||
|
||||
labeldict = {
|
||||
int(w.id): w.__str__() for w in workouts
|
||||
}
|
||||
try:
|
||||
labeldict = {
|
||||
int(w.id): w.__str__() for w in workouts
|
||||
}
|
||||
except:
|
||||
labeldict = {}
|
||||
|
||||
res = interactive_multiple_compare_chart(workoutids, xparam, yparam,
|
||||
promember=promember,
|
||||
|
||||
Reference in New Issue
Block a user