Skip to content

Commit

Permalink
Take more versions into account for the crash-stats query.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémy HUBSCHER committed Jan 30, 2018
1 parent cde1c11 commit f276327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pollbot/tasks/crash_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async def get_channel_versions(product, version):
with get_session() as session:
async with session.get(url) as resp:
body = await resp.json()
versions = [h['version'] for h in body['hits'][:5]]
versions = [h['version'] for h in body['hits'][:25]]
if version not in versions:
versions.extend([h['version'] for h in body['hits'] if h['version'] == version])
return versions
Expand Down

0 comments on commit f276327

Please sign in to comment.