mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-25 06:48:01 -05:00
all_live_promo_srnames: Eliminate memoize expiration time.
This commit is contained in:
@@ -708,7 +708,7 @@ def refund_campaign(link, camp, billable_amount, billable_impressions):
|
||||
PromoTuple = namedtuple('PromoTuple', ['link', 'weight', 'campaign'])
|
||||
|
||||
|
||||
@memoize('all_live_promo_srnames', time=600)
|
||||
@memoize('all_live_promo_srnames')
|
||||
def all_live_promo_srnames():
|
||||
now = promo_datetime_now()
|
||||
return {camp.sr_name for camp, link in get_promos(now)
|
||||
|
||||
Reference in New Issue
Block a user