Permalink
Browse files

works with deeper heirarchy ts

  • Loading branch information...
1 parent d69d239 commit 70c84dfd42afc5634d072f098ac3533cb3c98db2 Ben Fields committed Apr 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/artist.py
View
@@ -26,7 +26,7 @@ def __getattr__(self, attr):
if attr in Artist.summary_attrs and not self.fetched_summary:
self.fetch_summary()
return getattr(self, attr)
- if len(attr.split('_')) == 2:
+ if len(attr.split('_')) > 1:
try:
result = self._construct_timeseries(attr.replace('_', '/'))
setattr(self, attr, result) # don't want to call the api over and over

0 comments on commit 70c84df

Please sign in to comment.