diff --git a/rowers/scoring.py b/rowers/scoring.py index f0093af6..1156bc25 100644 --- a/rowers/scoring.py +++ b/rowers/scoring.py @@ -5,7 +5,6 @@ import arrow import datetime def save_scoring(name,user,filename,id=0,notes=""): - print(notes) if id==0: collection = StandardCollection(name=name,manager=user,notes=notes) collection.save() diff --git a/rowers/templates/standard_view.html b/rowers/templates/standard_view.html index 2bc1a232..e42b4aad 100644 --- a/rowers/templates/standard_view.html +++ b/rowers/templates/standard_view.html @@ -32,6 +32,9 @@ +
  • +

    Update these Standard Times +

  • Standard Times

    \d+)/$',views.standards_upload_view,name='standards_upload_view'), re_path(r'^workout/addmanual/(?P\d+)$',views.addmanual_view,name='addmanual_view'), re_path(r'^workout/addmanual/$',views.addmanual_view,name='addmanual_view'), re_path(r'^team-compare-select/workout/(?P\d+)/team/(?P\d+)/user/(?P\d+)/$',views.team_comparison_select,name='team_comparison_select'), diff --git a/rowers/views/racesviews.py b/rowers/views/racesviews.py index 27a98f43..700adfac 100644 --- a/rowers/views/racesviews.py +++ b/rowers/views/racesviews.py @@ -531,7 +531,6 @@ def standards_upload_view(request,id=0): if request.method == 'POST': - print(request.POST) form = StandardsForm(request.POST,request.FILES) if form.is_valid(): @@ -542,7 +541,7 @@ def standards_upload_view(request,id=0): filename,path_and_filename = handle_uploaded_file(f) id = save_scoring(name,request.user,path_and_filename,notes=notes,id=id) - print(notes) + os.remove(path_and_filename) @@ -567,7 +566,6 @@ def standards_upload_view(request,id=0): return HttpResponseRedirect(url) else: messages.error(request,'Form is not valid') - print(form.errors) return render(request,'standard_form.html', {'form':form, })