Admin listing for reported promoted links.

This commit is contained in:
Brian Simpson
2013-08-09 14:49:33 -04:00
parent 7e52cf0e09
commit e65b059d36
2 changed files with 4 additions and 0 deletions

View File

@@ -93,6 +93,7 @@ from r2.models import (
Account,
calc_impressions,
Frontpage,
get_promote_srid,
Link,
LiveAdWeights,
Message,
@@ -236,6 +237,8 @@ class PromoteController(ListingController):
return_dict=False)
link_ids = [camp.link_id for camp in campaigns]
return [Link._fullname_from_id36(to36(id)) for id in link_ids]
elif self.sort == 'reported':
return queries.get_reported_links(get_promote_srid())
return queries.get_all_promoted_links()
else:
if self.sort == "future_promos":

View File

@@ -3305,6 +3305,7 @@ class PromotePage(Reddit):
dest='/admin/graph'))
buttons.append(NavButton('report', 'report'))
buttons.append(NavButton('underdelivered', 'underdelivered'))
buttons.append(NavButton('reported links', 'reported'))
menu = NavMenu(buttons, base_path = '/promoted',
type='flatlist')