cloudoll 2.2.18__tar.gz → 2.2.20__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.18 → cloudoll-2.2.20}/PKG-INFO +1 -1
- cloudoll-2.2.20/cloudoll/__init__.py +1 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/orm/model.py +6 -1
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll.egg-info/PKG-INFO +1 -1
- cloudoll-2.2.18/cloudoll/__init__.py +0 -1
- {cloudoll-2.2.18 → cloudoll-2.2.20}/LICENSE +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/README.md +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/__main__.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/cli.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/error/__init__.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/error/errors.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/logging/__init__.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/mail/__init__.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/mail/smtp.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/orm/__init__.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/orm/base.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/orm/err.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/orm/field.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/orm/mysql.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/orm/parse.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/orm/postgres.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/robot/__init__.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/robot/dingtalk.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/robot/feishu.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/robot/slack.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/utils/__init__.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/utils/common.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/utils/m2d.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/utils/patch_loop.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/utils/watch.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/web/__init__.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/web/exception.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/web/html.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/web/http.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/web/jwt.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll/web/settings.py +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll.egg-info/SOURCES.txt +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll.egg-info/dependency_links.txt +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll.egg-info/entry_points.txt +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll.egg-info/requires.txt +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/cloudoll.egg-info/top_level.txt +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/setup.cfg +0 -0
- {cloudoll-2.2.18 → cloudoll-2.2.20}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.2.20"
|
|
@@ -4,6 +4,7 @@ from functools import reduce
|
|
|
4
4
|
import operator
|
|
5
5
|
import copy
|
|
6
6
|
import datetime
|
|
7
|
+
from ..utils.common import Object
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
class ModelMetaclass(type):
|
|
@@ -294,8 +295,12 @@ class Model(metaclass=ModelMetaclass):
|
|
|
294
295
|
args = self.__params__
|
|
295
296
|
rs = await self.__pool__.one(sql, args)
|
|
296
297
|
if rs:
|
|
298
|
+
## join 时返回dict
|
|
299
|
+
result = Object(rs) if self.__join__ is not None else self(**rs)
|
|
297
300
|
self._reset()
|
|
298
|
-
return
|
|
301
|
+
return result
|
|
302
|
+
# return self(**rs)
|
|
303
|
+
# return Object(rs)
|
|
299
304
|
# return cls(**rs)
|
|
300
305
|
return None
|
|
301
306
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.2.18"
|
|
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
|