changeset 12:2b115732f4bc

Fix graph saving
author Daniel O'Connor <darius@dons.net.au>
date Fri, 22 Dec 2017 13:19:52 +0100
parents e1bec6dfd524
children 3f22fa1f32d5
files graph.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graph.py	Fri Dec 22 13:19:43 2017 +0100
+++ b/graph.py	Fri Dec 22 13:19:52 2017 +0100
@@ -245,7 +245,7 @@
         matplotlib.pyplot.show()
     else:
         canvas = matplotlib.backends.backend_agg.FigureCanvasAgg(fig) # Sets canvas in fig too
-        fig.savefig(startlt.strftime(fname))
+        fig.savefig(startdt.strftime(fname))
 
 def updatedb(cur, data):
     mkdb(cur)