Skip to content

Commit 0930c01

Browse files
committed
fix: filter boolean
1 parent 38aef68 commit 0930c01

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="vika",
8-
version="1.0.6",
8+
version="1.0.7",
99
author="vikadata",
1010
author_email="[email protected]",
1111
description="维格表官方 Python SDK",

vika/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def query_parse(field_key_map: FieldKeyMap, **kwargs):
6060
# 处理字符串
6161
if isinstance(v, str):
6262
v = f'"{v}"'
63+
if isinstance(v, bool):
64+
v = 'TRUE()' if v else 'FALSE()'
6365
# 处理数组类型的值,多选,成员?
6466
if isinstance(v, list):
6567
v = f'"{", ".join(v)}"'

0 commit comments

Comments
 (0)