Add promotion_history to targeted traffic classes.

This commit is contained in:
bsimpson63
2013-04-14 21:37:59 -04:00
parent 6ca97cca5e
commit 2cebd2881f

View File

@@ -482,6 +482,11 @@ class TargetedClickthroughsByCodename(Base):
unique_count = Column("unique", Integer())
pageview_count = Column("total", Integer())
@classmethod
@memoize_traffic(time=3600)
def promotion_history(cls, codename, start, stop):
return promotion_history(cls, codename, start, stop)
@classmethod
@memoize_traffic(time=3600)
def total_by_codename(cls, codenames):
@@ -554,6 +559,11 @@ class TargetedImpressionsByCodename(Base):
unique_count = Column("unique", Integer())
pageview_count = Column("total", Integer())
@classmethod
@memoize_traffic(time=3600)
def promotion_history(cls, codename, start, stop):
return promotion_history(cls, codename, start, stop)
@classmethod
@memoize_traffic(time=3600)
def total_by_codename(cls, codenames):