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:
Keith Mitchell
2012-08-21 13:02:22 -07:00
parent 30885089bd
commit 095091dffb

View File

@@ -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: