satori-python 0.16.1__tar.gz → 0.16.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {satori_python-0.16.1 → satori_python-0.16.2}/PKG-INFO +1 -1
- {satori_python-0.16.1 → satori_python-0.16.2}/pyproject.toml +1 -1
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/__init__.py +1 -1
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/__init__.py +1 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/model.py +4 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/LICENSE +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/README.md +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/account.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/account.pyi +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/config.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/network/__init__.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/network/base.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/network/util.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/network/webhook.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/network/websocket.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/protocol.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/const.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/element.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/event.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/exception.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/parser.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/server/__init__.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/server/adapter.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/server/conection.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/server/formdata.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/server/model.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/server/route.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/server/utils.py +0 -0
- {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/utils.py +0 -0
|
@@ -172,8 +172,12 @@ class Login(ModelBase):
|
|
|
172
172
|
def parse(cls, raw: dict):
|
|
173
173
|
if "self_id" in raw and "user" not in raw:
|
|
174
174
|
raw["user"] = {"id": raw["self_id"]}
|
|
175
|
+
if "sn" not in raw:
|
|
176
|
+
raw["sn"] = raw["user"]["id"]
|
|
175
177
|
if "adapter" not in raw:
|
|
176
178
|
raw["adapter"] = "satori"
|
|
179
|
+
if "status" not in raw:
|
|
180
|
+
raw["status"] = LoginStatus.ONLINE
|
|
177
181
|
return super().parse(raw)
|
|
178
182
|
|
|
179
183
|
@property
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|