Skip to content

Commit

Permalink
Removed unnecessary code now that all Account instances will have all…
Browse files Browse the repository at this point in the history
… attributes set.
  • Loading branch information
jsma authored and Clint Ecker committed Nov 17, 2009
1 parent 14c1a90 commit 5b95e3e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/googleanalytics/account.py
Expand Up @@ -23,17 +23,9 @@ def __init__(self, connection=None, title=None, id=None,
self.time_zone = time_zone
self.updated = updated
self.web_property_id = web_property_id
if table_id:
self.table_id = table_id
else:
if self.profile_id:
self.table_id = 'ga:' + self.profile_id

def __repr__(self):
if self.title:
return '<Account: %s>' % self.title
elif self.table_id:
return '<Account: %s>' % self.table_id
return '<Account: %s>' % self.title

def get_data(self, start_date, end_date, metrics, dimensions=[], sort=[], filters=[], start_index=0, max_results=0):
"""
Expand Down

0 comments on commit 5b95e3e

Please sign in to comment.