mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 07:48:16 -05:00
promote.py: Need to load the campaign data
In scheduled_campaigns_by_link, a call to PromoCampaign._byID was referencing data attributes but not requesting data=True on load.
This commit is contained in:
@@ -743,7 +743,7 @@ def scheduled_campaigns_by_link(l, date=None):
|
||||
accepted = []
|
||||
for campaign_id in campaigns:
|
||||
try:
|
||||
campaign = PromoCampaign._byID(campaign_id)
|
||||
campaign = PromoCampaign._byID(campaign_id, data=True)
|
||||
if authorize.is_charged_transaction(campaign.trans_id, campaign_id):
|
||||
accepted.append(campaign_id)
|
||||
except NotFound:
|
||||
|
||||
Reference in New Issue
Block a user