This commit is contained in:
yumoqing 2024-10-10 10:50:07 +08:00
parent 6d0b98f67a
commit 1ffed0fc16
2 changed files with 4 additions and 3 deletions

View File

@ -24,13 +24,13 @@ class AHApp(web.Application):
def __init__(self, *args, **kw): def __init__(self, *args, **kw):
kw['client_max_size'] = 1024000000 kw['client_max_size'] = 1024000000
super().__init__(*args, **kw) super().__init__(*args, **kw)
self.data = DictObject() self.user_data = DictObject()
def set_data(self, k, v): def set_data(self, k, v):
self.data[k] = v self.user_data[k] = v
def get_data(self, k): def get_data(self, k):
return self.data.get(k, DictObject()) return self.user_data.get(k)
class ConfiguredServer: class ConfiguredServer:
def __init__(self, auth_klass=AuthAPI, workdir=None): def __init__(self, auth_klass=AuthAPI, workdir=None):

View File

@ -146,6 +146,7 @@ class WsPool:
if r is None: if r is None:
r = WsData() r = WsData()
self.set_data(r) self.set_data(r)
debug(f'get_data():r={r}')
return r return r
def set_data(self, data): def set_data(self, data):