-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the releasenotes bot in the service response.
- Loading branch information
Rémy HUBSCHER
committed
Aug 4, 2017
1 parent
c60f597
commit 6dbf09b
Showing
4 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
import asyncio | ||
from aiohttp import web | ||
from pollbot.tasks.releasenotes import release_notes_published | ||
|
||
|
||
async def info(request): | ||
release_version = request.match_info['version'] | ||
product = 'firefox' | ||
version = request.match_info['version'] | ||
|
||
infos = await asyncio.gather(release_notes_published(product, version)) | ||
|
||
return web.json_response({ | ||
"product": "firefox", | ||
"version": release_version | ||
"product": product, | ||
"version": version, | ||
"releasenotes": infos[0] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters