I've also been hit by this issue, I managed to get hamster statistics
locally by poking in the file:

/usr/lib/python2.7/dist-packages/hamster/stats.py

Depending on the hamster version packaged in your distro, the  number of
the line to change might be different, I had to change line  131 in my
installation (I'm on Mint LMDE, hamster .deb version 2.91.3+git20).

Change this line (131 on my system) from:

        if not self.stat_facts or self.stat_facts[-1].start_time.year ==
self.stat_facts[0].start_time.year:

to the simpler version:

        if not self.stat_facts:

That did it for me. Note that I do not know if this change has any
detrimental side-effects...

Cheers,

JB

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1207400

Title:
  Statistics not working

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hamster-indicator/+bug/1207400/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to