From 2fa369e76e91fd35f4718636f40ae981a44f7756 Mon Sep 17 00:00:00 2001 From: Brian Simpson Date: Fri, 9 Aug 2013 17:23:11 -0400 Subject: [PATCH] promote.new_campaign cleanup. --- r2/r2/lib/promote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/lib/promote.py b/r2/r2/lib/promote.py index b64fcd033..3acf4a2cd 100644 --- a/r2/r2/lib/promote.py +++ b/r2/r2/lib/promote.py @@ -335,7 +335,7 @@ def new_campaign(link, dates, bid, cpm, sr): campaign = PromoCampaign._new(link, sr_name, bid, cpm, dates[0], dates[1]) PromotionWeights.add(link, campaign._id, sr_name, dates[0], dates[1], bid) PromotionLog.add(link, 'campaign %s created' % campaign._id) - author = Account._byID(link.author_id, True) + author = Account._byID(link.author_id, data=True) if getattr(author, "complimentary_promos", False): free_campaign(link, campaign, c.user) return campaign