satori-python-core 0.13.1__tar.gz → 0.13.3__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.13.1
3
+ Version: 0.13.3
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.13.1"
26
+ version = "0.13.3"
27
27
 
28
28
  [project.license]
29
29
  text = "MIT"
@@ -43,4 +43,4 @@ from .model import Role as Role
43
43
  from .model import Upload as Upload
44
44
  from .model import User as User
45
45
 
46
- __version__ = "0.13.1"
46
+ __version__ = "0.13.3"
@@ -97,8 +97,11 @@ class Element:
97
97
  self.attrs["is"] = type
98
98
  else:
99
99
  self.type = type
100
- if self.tag() == "text" and "content" in self.attrs:
101
- self.attrs["text"] = self.attrs.pop("content")
100
+ if self.tag() == "text":
101
+ if "content" in self.attrs:
102
+ self.attrs["text"] = self.attrs.pop("content")
103
+ elif not self.attrs:
104
+ self.attrs["text"] = ""
102
105
 
103
106
  def tag(self):
104
107
  if self.type == "component":