This commit is contained in:
Kovid Goyal 2008-12-02 21:06:36 -08:00
parent 0a67d5eb85
commit e412e3e3ec

View File

@ -9,6 +9,7 @@ Keep track of donations to calibre.
import sys, cStringIO, textwrap, traceback, re, os, time import sys, cStringIO, textwrap, traceback, re, os, time
from datetime import date, timedelta from datetime import date, timedelta
from math import sqrt from math import sqrt
os.environ['HOME'] = '/tmp'
import matplotlib import matplotlib
matplotlib.use('Agg') matplotlib.use('Agg')
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
@ -430,7 +431,7 @@ class Server(object):
<hr /> <hr />
<div style="text-align:center"> <div style="text-align:center">
<h3>Income trends for the last year</h3> <h3>Income trends for the last year</h3>
<img src="/trend.png" alt="Income trends" /> <img src="%(root)strend.png" alt="Income trends" />
</div> </div>
</body> </body>
</html> </html>