Hi Zoli,
sorry for the delay - I was offline for nearly a week.
Thanks for spotting this really stupid bug. I was aware that there is something wrong, because sometimes the sorting was strange. But somehow, I didn't expect it at that position in the code...
Best,
Jörg
On 17.09.04, SZALONTAI Zoltan wrote:
Hi!
I've used PyTone a couple of days and I found it's great. However I found a small bug in lastplayed calculation. The patch attached.
-- Regards, Zoli
--- item.py.orig 2004-09-14 20:53:52.000000000 +0200 +++ item.py 2004-09-14 20:58:43.000000000 +0200 @@ -196,7 +196,7 @@ class song(item): if self.song.nrplayed>0: last = int((time.time()-self.song.lastplayed[-1])/60) days, rest = divmod(last, 24*60)
hours, minutes = divmod(rest, 24)
hours, minutes = divmod(rest, 60) if days>0: lastplayed = "%dd%dh%dm" % (days, hours, minutes) elif hours>0: