From 98a0f7153adf55d2e874e69cf2e6203db926750b Mon Sep 17 00:00:00 2001 From: Abhinav Sarkar Date: Sat, 3 Jan 2009 09:24:29 +0000 Subject: [PATCH] minor changes --- lastfm/weeklychart.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lastfm/weeklychart.py b/lastfm/weeklychart.py index a219494..9e0c5e9 100644 --- a/lastfm/weeklychart.py +++ b/lastfm/weeklychart.py @@ -323,7 +323,7 @@ class WeeklyTagChart(WeeklyChart): tag, weight = tag_weights[i] tag_weights[i] = (tag, weight, i+1) - return WeeklyTagChart( + wtc = WeeklyTagChart( subject = subject, start = wac.start, end = wac.end, @@ -345,6 +345,8 @@ class WeeklyTagChart(WeeklyChart): for (tag, weight, rank) in tag_weights ] ) + wtc._artist_spectrum_analyzed = 100*total_playcount/float(wac.stats.playcount) + return wtc from datetime import datetime import calendar