satori-python-core 0.16.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: satori-python-core
3
- Version: 0.16.0
3
+ Version: 0.16.2
4
4
  Summary: Satori Protocol SDK for python, specify common part
5
5
  Home-page: https://github.com/RF-Tar-Railt/satori-python
6
6
  Author-Email: RF-Tar-Railt <rf_tar_railt@qq.com>
@@ -23,7 +23,7 @@ classifiers = [
23
23
  "Programming Language :: Python :: 3.12",
24
24
  "Operating System :: OS Independent",
25
25
  ]
26
- version = "0.16.0"
26
+ version = "0.16.2"
27
27
 
28
28
  [project.license]
29
29
  text = "MIT"
@@ -41,4 +41,4 @@ from .model import Role as Role
41
41
  from .model import Upload as Upload
42
42
  from .model import User as User
43
43
 
44
- __version__ = "0.16.0"
44
+ __version__ = "0.16.2"
@@ -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