Skip to content

Commit

Permalink
fixes bug 1257149 - featured_versions_sync default url a string
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbe committed Apr 5, 2016
1 parent 3aab714 commit d1d7ee0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion socorro/cron/jobs/featured_versions_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ class FeaturedVersionsSyncCronApp(BaseCronApp):
'api_endpoint_url',
default=(
'https://crash-stats.mozilla.com/api/ProductVersions/?'
'active=true&is_featured=true',
'active=true&is_featured=true'
),
doc='URL from which we can download all the active products'
)

def run(self):
assert isinstance(self.config.api_endpoint_url, basestring)
hits = requests.get(self.config.api_endpoint_url).json()['hits']
featured_products = {}
for pv in hits:
Expand Down

0 comments on commit d1d7ee0

Please sign in to comment.