fix for port

This commit is contained in:
Forevka 2019-11-11 23:48:00 +02:00
parent 647521a65d
commit f23369aeb5

View file

@ -50,8 +50,8 @@ class CustomExecutor(Executor):
inherit from Executor class and overwrite run_app
method so you can easily add own routes
'''
def run_app(self, **kwargs):
web.run_app(self._web_app, **kwargs, port = 9999)
def run_app(self, port: int = 8080, **kwargs,):
web.run_app(self._web_app, **kwargs, port = port)
def add_subapp(self, subapp: web.Application, subapp_prefix: str):
self._web_app.add_subapp(subapp_prefix, subapp)