From: <dg...@us...> - 2011-10-20 23:23:39
|
Revision: 897 http://pytrainer.svn.sourceforge.net/pytrainer/?rev=897&view=rev Author: dgranda Date: 2011-10-20 23:23:33 +0000 (Thu, 20 Oct 2011) Log Message: ----------- Fixed encoding issue that prevented some days of the week and associated information to be shown in stacked bars graph under week tab Modified Paths: -------------- pytrainer/trunk/pytrainer/weekgraph.py Modified: pytrainer/trunk/pytrainer/weekgraph.py =================================================================== --- pytrainer/trunk/pytrainer/weekgraph.py 2011-10-20 17:41:53 UTC (rev 896) +++ pytrainer/trunk/pytrainer/weekgraph.py 2011-10-20 23:23:33 UTC (rev 897) @@ -43,5 +43,5 @@ def getDays(date_ini): #TODO look at using calendar.day_abbr for this - return [(datetime.datetime.strptime(date_ini, "%Y-%m-%d")+datetime.timedelta(x)).strftime("%a") for x in xrange(0,7)] + return [unicode((datetime.datetime.strptime(date_ini, "%Y-%m-%d")+datetime.timedelta(x)).strftime("%a")) for x in xrange(0,7)] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |