Mercurial > ~darius > hgwebdir.cgi > vanlogger
diff graph.py @ 16:29a61ec4755b
Use correct variable name when saving a file
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Fri, 23 Feb 2018 15:04:59 +1030 |
parents | c04c75360a3b |
children | 57dece5674e3 |
line wrap: on
line diff
--- a/graph.py Fri Feb 23 14:57:45 2018 +1030 +++ b/graph.py Fri Feb 23 15:04:59 2018 +1030 @@ -251,7 +251,7 @@ matplotlib.pyplot.show() else: canvas = matplotlib.backends.backend_agg.FigureCanvasAgg(fig) # Sets canvas in fig too - fig.savefig(startdt.strftime(fname)) + fig.savefig(end.strftime(fname)) if __name__ == '__main__': main()