TypeDAL 3.9.0__py3-none-any.whl → 3.9.1__py3-none-any.whl
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.
Potentially problematic release.
This version of TypeDAL might be problematic. Click here for more details.
- typedal/__about__.py +1 -1
- typedal/core.py +12 -2
- {typedal-3.9.0.dist-info → typedal-3.9.1.dist-info}/METADATA +1 -1
- {typedal-3.9.0.dist-info → typedal-3.9.1.dist-info}/RECORD +6 -6
- {typedal-3.9.0.dist-info → typedal-3.9.1.dist-info}/WHEEL +0 -0
- {typedal-3.9.0.dist-info → typedal-3.9.1.dist-info}/entry_points.txt +0 -0
typedal/__about__.py
CHANGED
typedal/core.py
CHANGED
|
@@ -2230,9 +2230,19 @@ class QueryBuilder(typing.Generic[T_MetaInstance]):
|
|
|
2230
2230
|
|
|
2231
2231
|
def __bool__(self) -> bool:
|
|
2232
2232
|
"""
|
|
2233
|
-
Querybuilder is truthy if it has
|
|
2233
|
+
Querybuilder is truthy if it has any conditions.
|
|
2234
2234
|
"""
|
|
2235
|
-
|
|
2235
|
+
table = self.model._ensure_table_defined()
|
|
2236
|
+
default_query = typing.cast(Query, table.id > 0)
|
|
2237
|
+
return any(
|
|
2238
|
+
[
|
|
2239
|
+
self.query != default_query,
|
|
2240
|
+
self.select_args,
|
|
2241
|
+
self.select_kwargs,
|
|
2242
|
+
self.relationships,
|
|
2243
|
+
self.metadata,
|
|
2244
|
+
]
|
|
2245
|
+
)
|
|
2236
2246
|
|
|
2237
2247
|
def _extend(
|
|
2238
2248
|
self,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
typedal/__about__.py,sha256=
|
|
1
|
+
typedal/__about__.py,sha256=B3nvfsy5sqV1qvJD-USMBUZp7Yxt_MntWJjHQpKTRp4,206
|
|
2
2
|
typedal/__init__.py,sha256=QQpLiVl9w9hm2LBxey49Y_tCF_VB2bScVaS_mCjYy54,366
|
|
3
3
|
typedal/caching.py,sha256=SMcJsahLlZ79yykWCveERFx1ZJUNEKhA9SPmCTIuLp8,11798
|
|
4
4
|
typedal/cli.py,sha256=wzyId6YwRyqfuJ2byxvl6YecDNaKpkLmo-R5HvRuTok,19265
|
|
5
5
|
typedal/config.py,sha256=0qy1zrTUdtmXPM9jHzFnSR1DJsqGJqcdG6pvhzKQHe0,11625
|
|
6
|
-
typedal/core.py,sha256=
|
|
6
|
+
typedal/core.py,sha256=OBokUmNBvm83REIEKUjjIXna5UWSXC5H8M82LiAag0M,102729
|
|
7
7
|
typedal/fields.py,sha256=A4qt0aK4F_-UeOY-xJ0ObVY-tFEoLFy7TYRMHnp4g6o,6516
|
|
8
8
|
typedal/for_py4web.py,sha256=d07b8hL_PvNDUS26Z5fDH2OxWb-IETBuAFPSzrRwm04,1285
|
|
9
9
|
typedal/for_web2py.py,sha256=xn7zo6ImsmTkH6LacbjLQl2oqyBvP0zLqRxEJvMQk1w,1929
|
|
@@ -13,7 +13,7 @@ typedal/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
13
13
|
typedal/types.py,sha256=1FIgv1s0be0E8r5Wd9E1nvDvK4ETV8u2NlfI7_P6UUY,6752
|
|
14
14
|
typedal/web2py_py4web_shared.py,sha256=VK9T8P5UwVLvfNBsY4q79ANcABv-jX76YKADt1Zz_co,1539
|
|
15
15
|
typedal/serializers/as_json.py,sha256=ffo152W-sARYXym4BzwX709rrO2-QwKk2KunWY8RNl4,2229
|
|
16
|
-
typedal-3.9.
|
|
17
|
-
typedal-3.9.
|
|
18
|
-
typedal-3.9.
|
|
19
|
-
typedal-3.9.
|
|
16
|
+
typedal-3.9.1.dist-info/METADATA,sha256=Sq9mjfjvP1QgHSkb5HMpTkmsoxqyAZe7vFHTU-KXeQc,10463
|
|
17
|
+
typedal-3.9.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
18
|
+
typedal-3.9.1.dist-info/entry_points.txt,sha256=m1wqcc_10rHWPdlQ71zEkmJDADUAnZtn7Jac_6mbyUc,44
|
|
19
|
+
typedal-3.9.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|