fixes fixes
This commit is contained in:
@@ -50,7 +50,6 @@ def download_fit(request, filename=''):
|
||||
try:
|
||||
response = HttpResponse(fitfile)
|
||||
except FileNotFoundError:
|
||||
print(fitfile, "not found")
|
||||
raise Http404("File not found")
|
||||
|
||||
response['Content-Disposition'] = 'attachment; filename="%s"' % filename # pragma: no cover
|
||||
|
||||
@@ -2044,6 +2044,12 @@ def workouts_bulk_actions(request):
|
||||
workoutids = request.session.get('ids',[])
|
||||
workouts = []
|
||||
exportchoice = 'strava'
|
||||
|
||||
# exportchoice = ExportChoices()
|
||||
actionform = WorkoutBulkActions()
|
||||
actionform.fields["action"].initial = action
|
||||
assignchoices = AssignChoices()
|
||||
|
||||
try:
|
||||
for encid in workoutids:
|
||||
w = get_workout_by_opaqueid(request, encid)
|
||||
@@ -2286,8 +2292,7 @@ def workouts_view(request, message='', successmessage='',
|
||||
(Q(name__icontains=q) for q in query_list)) |
|
||||
reduce(operator.and_,
|
||||
(Q(notes__icontains=q) for q in query_list)),
|
||||
exclude_strava=False,
|
||||
)
|
||||
).exclude(workoutsource='strava')
|
||||
searchform = SearchForm(initial={'q': query})
|
||||
else:
|
||||
searchform = SearchForm()
|
||||
|
||||
Reference in New Issue
Block a user