From e0ab778e36f7880b765baee91b1d669d2f6a97ae Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Mon, 2 Nov 2020 22:16:29 +0100 Subject: [PATCH] fix --- rowers/uploads.py | 3 +++ 1 file changed, 3 insertions(+) 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