ezKit 1.12.46__py3-none-any.whl → 1.12.47__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.
- ezKit/database.py +4 -2
- {ezkit-1.12.46.dist-info → ezkit-1.12.47.dist-info}/METADATA +1 -1
- {ezkit-1.12.46.dist-info → ezkit-1.12.47.dist-info}/RECORD +6 -6
- {ezkit-1.12.46.dist-info → ezkit-1.12.47.dist-info}/WHEEL +0 -0
- {ezkit-1.12.46.dist-info → ezkit-1.12.47.dist-info}/licenses/LICENSE +0 -0
- {ezkit-1.12.46.dist-info → ezkit-1.12.47.dist-info}/top_level.txt +0 -0
ezKit/database.py
CHANGED
@@ -219,8 +219,8 @@ def build_sqlalchemy_where_clause(data: dict) -> Optional[Tuple[str, Dict[str, A
|
|
219
219
|
for field, value in _data.items():
|
220
220
|
|
221
221
|
# 特殊处理日期字段
|
222
|
-
is_date_field = field == "
|
223
|
-
base_field = field.replace("
|
222
|
+
is_date_field = field == "datetime_date" or field.startswith("datetime_date__")
|
223
|
+
base_field = field.replace("datetime_date", "datetime::date", 1) if is_date_field else field
|
224
224
|
|
225
225
|
if "__" in base_field:
|
226
226
|
|
@@ -248,7 +248,9 @@ def build_sqlalchemy_where_clause(data: dict) -> Optional[Tuple[str, Dict[str, A
|
|
248
248
|
sql_parts.append(f"{base} BETWEEN :{param_key}_start AND :{param_key}_end")
|
249
249
|
param_dict[f"{param_key}_start"] = value[0]
|
250
250
|
param_dict[f"{param_key}_end"] = value[1]
|
251
|
+
|
251
252
|
else:
|
253
|
+
|
252
254
|
param_key = base_field.replace(".", "_")
|
253
255
|
# 特殊处理日期字段
|
254
256
|
if param_key.startswith("datetime::date"):
|
@@ -4,7 +4,7 @@ ezKit/auth.py,sha256=HO19O4qOz68e0YwOP04habxMCAk42B3D7LW7yKgm9ZA,398
|
|
4
4
|
ezKit/bottle.py,sha256=43h4v1kzz6qrLvCt5IMN0H-gFtaT0koG9wETqteXsps,181666
|
5
5
|
ezKit/bottle_extensions.py,sha256=27rogmfK7mL2qUSjXH79IMGZbCVULtYEikql_N9O6Zs,1165
|
6
6
|
ezKit/cipher.py,sha256=7jBarRH7ukSYzkz-Anl8B8JzluhnRz4CLHidPRRj_cg,2939
|
7
|
-
ezKit/database.py,sha256=
|
7
|
+
ezKit/database.py,sha256=fHqmFt1H81PELAsishcklzTnrvPovjgCFIVQK1aUlSA,33174
|
8
8
|
ezKit/dockerhub.py,sha256=j-wQO-71BsOgExHZhYynuy2k_hCX3on-vg0TH7QCit4,1996
|
9
9
|
ezKit/errors.py,sha256=92PggwPQfTS3Vg4og7GHYnO9CTSM7zmuh2w3kx_tSBE,1425
|
10
10
|
ezKit/fastapix.py,sha256=-nz565ASKvp3nGs9J4wORTHxlhMozqCwv8zREWpmYtI,3382
|
@@ -18,8 +18,8 @@ ezKit/token.py,sha256=Ac-i9xfq4TqpGyfCzakjrh4NYzxHiN2sCQrMk1tzVi8,1716
|
|
18
18
|
ezKit/utils.py,sha256=U457ahFkxIXuB-qWvS3995xJs-LlkFIX5_ZWVgmL5cY,43130
|
19
19
|
ezKit/xftp.py,sha256=-XQXyhMqeigT63P6sXkSS7r4GROXyqqlkzKxITLWG-g,8278
|
20
20
|
ezKit/zabbix.py,sha256=PkMnfu7mcuotwwIIsHaC9FsNg-gap6hD1xvm0AwSL1Y,33777
|
21
|
-
ezkit-1.12.
|
22
|
-
ezkit-1.12.
|
23
|
-
ezkit-1.12.
|
24
|
-
ezkit-1.12.
|
25
|
-
ezkit-1.12.
|
21
|
+
ezkit-1.12.47.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
22
|
+
ezkit-1.12.47.dist-info/METADATA,sha256=zxEuLOG8ERjvqvcXxepBi4Va4BItBFOt2QGi6AwnNLc,317
|
23
|
+
ezkit-1.12.47.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
24
|
+
ezkit-1.12.47.dist-info/top_level.txt,sha256=aYLB_1WODsqNTsTFWcKP-BN0KCTKcV-HZJ4zlHkCFw8,6
|
25
|
+
ezkit-1.12.47.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|