Automated update of Base Application package.

This commit is contained in:
bot 2024-12-06 20:03:45 +00:00
parent e3b70d8a51
commit eb5af2ab7b
3 changed files with 3 additions and 4 deletions

Binary file not shown.

BIN
dist/app-1.0.0.tar.gz vendored

Binary file not shown.

View File

@ -38,11 +38,10 @@ class BaseApplication(web.Application):
middlewares.append(self.session_middleware) middlewares.append(self.session_middleware)
super().__init__(middlewares=middlewares, *args, **kwargs) super().__init__(middlewares=middlewares, *args, **kwargs)
def run(self, *args, **kwargs): def run(self, *args, **kwargs):
if kwargs.get('port'): if kwargs.get("port"):
if not kwargs.get('host'): if not kwargs.get("host"):
kwargs['host'] = '127.0.0.1' kwargs["host"] = "127.0.0.1"
web.run_app(self, *args, **kwargs) web.run_app(self, *args, **kwargs)
async def authenticate(self, username, password): async def authenticate(self, username, password):