hamster-applet r872 - trunk/hamster
- From: tbaugis svn gnome org
- To: svn-commits-list gnome org
- Subject: hamster-applet r872 - trunk/hamster
- Date: Thu, 19 Mar 2009 18:52:18 +0000 (UTC)
Author: tbaugis
Date: Thu Mar 19 18:52:17 2009
New Revision: 872
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=872&view=rev
Log:
fixed bug with "month" view not working
also added experimental duration to totals chart
Modified:
trunk/hamster/stats.py
Modified: trunk/hamster/stats.py
==============================================================================
--- trunk/hamster/stats.py (original)
+++ trunk/hamster/stats.py Thu Mar 19 18:52:17 2009
@@ -402,15 +402,21 @@
if (self.end_date - self.start_date).days < 20:
day_keys = [day.strftime("%a") for day in all_days]
else:
- day_keys = [day.strftime(_("%(m_b)s %(m_d)s") % stuff.dateDict(day, "m_")) for day in all_days]
+ day_keys = [_("%(m_b)s %(m_d)s") % stuff.dateDict(day, "m_") for day in all_days]
self.day_chart.plot(day_keys, day_category_totals['values'],
stack_keys = day_category_totals['keys'])
category_totals = [[sum(value) for value in zip(*day_category_totals['values'])]]
+
+ category_keys = []
+ for i in range(len(day_category_totals['keys'])):
+ category_keys.append("%s %.1f" % (day_category_totals['keys'][i], category_totals[0][i]))
+
+
self.category_chart.plot([_("Total")], category_totals,
- stack_keys = day_category_totals['keys'])
+ stack_keys = category_keys)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]