diff --git a/r2/r2/models/traffic.py b/r2/r2/models/traffic.py index b09b01c46..853e97f9e 100644 --- a/r2/r2/models/traffic.py +++ b/r2/r2/models/traffic.py @@ -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):