Skip to content

Commit 86ad503

Browse files
stevengumaxelsrz
authored andcommitted
update .gitignore, remove asyncio from flask core-bot requirements (#213)
1 parent 6068d07 commit 86ad503

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ __pycache__/
44

55
# Virtual environment
66
env*/
7+
venv*/
78

89
# PTVS analysis
910
.ptvs/

samples/python-flask/13.core-bot/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ def messages():
6464
auth_header = request.headers['Authorization'] if 'Authorization' in request.headers else ''
6565

6666
async def aux_func(turn_context):
67-
asyncio.ensure_future(bot.on_turn(turn_context))
67+
asyncio.ensure_future(bot.on_turn(turn_context), loop=loop)
6868
try:
69-
task = loop.create_task(ADAPTER.process_activity(activity, auth_header, aux_func))
69+
task = asyncio.ensure_future(ADAPTER.process_activity(activity, auth_header, aux_func), loop=loop)
7070
loop.run_until_complete(task)
7171
return Response(status=201)
7272
except Exception as e:

samples/python-flask/13.core-bot/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Flask>=1.0.2
2-
asyncio>=3.4.3
32
requests>=2.18.1
43
botframework-connector>=4.4.0.b1
54
botbuilder-schema>=4.4.0.b1

0 commit comments

Comments
 (0)