diff --git a/rowers/uploads.py b/rowers/uploads.py index 44294348..b122e3df 100644 --- a/rowers/uploads.py +++ b/rowers/uploads.py @@ -440,6 +440,7 @@ def make_plot(r,w,f1,f2,plottype,title,imagename='',plotnr=0): 'timeplot':1, 'distanceplot':2, 'pieplot':3, + 'None':0, } axis = r.staticgrids @@ -451,6 +452,8 @@ def make_plot(r,w,f1,f2,plottype,title,imagename='',plotnr=0): if plotnr == 0: plotnr = plotnrs[plottype] + if plotnr == 0: + return 0,0 if w.workouttype in otwtypes: plotnr = plotnr+3