cloudoll 2.2.36__tar.gz → 2.2.37__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.
- {cloudoll-2.2.36 → cloudoll-2.2.37}/PKG-INFO +1 -1
- cloudoll-2.2.37/cloudoll/__init__.py +1 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/orm/model.py +1 -1
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/web/__init__.py +3 -1
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll.egg-info/PKG-INFO +1 -1
- cloudoll-2.2.36/cloudoll/__init__.py +0 -1
- {cloudoll-2.2.36 → cloudoll-2.2.37}/LICENSE +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/README.md +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/__main__.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/cli.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/error/__init__.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/error/errors.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/logging/__init__.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/mail/__init__.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/mail/smtp.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/orm/__init__.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/orm/base.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/orm/err.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/orm/field.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/orm/mysql.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/orm/parse.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/orm/postgres.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/robot/__init__.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/robot/dingtalk.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/robot/feishu.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/robot/slack.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/utils/__init__.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/utils/common.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/utils/m2d.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/utils/patch_loop.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/utils/snowflake.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/utils/watch.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/web/exception.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/web/html.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/web/http.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/web/jwt.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll/web/settings.py +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll.egg-info/SOURCES.txt +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll.egg-info/dependency_links.txt +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll.egg-info/entry_points.txt +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll.egg-info/requires.txt +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/cloudoll.egg-info/top_level.txt +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/setup.cfg +0 -0
- {cloudoll-2.2.36 → cloudoll-2.2.37}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.2.37"
|
|
@@ -228,7 +228,7 @@ class Model(metaclass=ModelMetaclass):
|
|
|
228
228
|
for item in args:
|
|
229
229
|
if isinstance(item, Model):
|
|
230
230
|
for k in item.__dict__:
|
|
231
|
-
if (action == "u" and item[k].value) or action == "i":
|
|
231
|
+
if (action == "u" and item[k].value is not None) or action == "i":
|
|
232
232
|
data[k] = item[k]
|
|
233
233
|
|
|
234
234
|
else: # for object
|
|
@@ -508,6 +508,8 @@ class JsonEncoder(json.JSONEncoder):
|
|
|
508
508
|
return list(obj)
|
|
509
509
|
elif isinstance(obj, Model):
|
|
510
510
|
return obj.__dict__
|
|
511
|
+
elif isinstance(obj, bytes):
|
|
512
|
+
return obj.decode("utf-8")
|
|
511
513
|
elif isinstance(obj, uuid.UUID) or isinstance(obj, Exception):
|
|
512
514
|
return str(obj)
|
|
513
515
|
else:
|
|
@@ -582,7 +584,7 @@ def render_json(data, **kw) -> Response:
|
|
|
582
584
|
res.update(data)
|
|
583
585
|
elif isinstance(data, tuple):
|
|
584
586
|
data = dict(data)
|
|
585
|
-
res.update(data)
|
|
587
|
+
res.update(data)
|
|
586
588
|
else:
|
|
587
589
|
res["data"] = data
|
|
588
590
|
status = kw.get("status", 200)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.2.36"
|
|
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
|
|
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
|