From e8318400e407666ce90da2e20f4791bdf92dc084 Mon Sep 17 00:00:00 2001 From: Brian Simpson Date: Wed, 5 Feb 2014 11:02:07 -0500 Subject: [PATCH] terminate_campaign: immediately update promote status to finished. --- r2/r2/lib/promote.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/r2/r2/lib/promote.py b/r2/r2/lib/promote.py index f548c26f6..2238a5b81 100644 --- a/r2/r2/lib/promote.py +++ b/r2/r2/lib/promote.py @@ -316,6 +316,9 @@ def terminate_campaign(link, campaign): edit_campaign(link, campaign, dates, campaign.bid, campaign.cpm, sr, campaign.priority, campaign.location) + update_promote_status(link, PROMOTE_STATUS.finished) + all_live_promo_srnames(_update=True) + msg = 'terminated campaign %s (original end %s)' % (campaign._id, original_end.date()) PromotionLog.add(link, msg)