returning 0 is makeplot gives no image
This commit is contained in:
@@ -1887,7 +1887,10 @@ def handle_makeplot(f1, f2, t, hrdata, plotnr, imagename,
|
|||||||
t += ' - Power Distribution'
|
t += ' - Power Distribution'
|
||||||
fig1 = row.get_power_piechart(t)
|
fig1 = row.get_power_piechart(t)
|
||||||
|
|
||||||
if fig1:
|
if fig1 is None:
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
canvas = FigureCanvas(fig1)
|
canvas = FigureCanvas(fig1)
|
||||||
|
|
||||||
canvas.print_figure('static/plots/' + imagename)
|
canvas.print_figure('static/plots/' + imagename)
|
||||||
|
|||||||
Reference in New Issue
Block a user