mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
Add promotion_history to targeted traffic classes.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user