lesscode-tag 0.0.2__tar.gz → 0.0.4__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.
- {lesscode_tag-0.0.2 → lesscode_tag-0.0.4}/PKG-INFO +1 -1
- {lesscode_tag-0.0.2 → lesscode_tag-0.0.4}/lesscode_tag/business.py +3 -6
- lesscode_tag-0.0.4/lesscode_tag/version.py +1 -0
- {lesscode_tag-0.0.2 → lesscode_tag-0.0.4}/lesscode_tag.egg-info/PKG-INFO +1 -1
- lesscode_tag-0.0.2/lesscode_tag/version.py +0 -1
- {lesscode_tag-0.0.2 → lesscode_tag-0.0.4}/README.md +0 -0
- {lesscode_tag-0.0.2 → lesscode_tag-0.0.4}/lesscode_tag/__init__.py +0 -0
- {lesscode_tag-0.0.2 → lesscode_tag-0.0.4}/lesscode_tag/aes.py +0 -0
- {lesscode_tag-0.0.2 → lesscode_tag-0.0.4}/lesscode_tag/es_util.py +0 -0
- {lesscode_tag-0.0.2 → lesscode_tag-0.0.4}/lesscode_tag.egg-info/SOURCES.txt +0 -0
- {lesscode_tag-0.0.2 → lesscode_tag-0.0.4}/lesscode_tag.egg-info/dependency_links.txt +0 -0
- {lesscode_tag-0.0.2 → lesscode_tag-0.0.4}/lesscode_tag.egg-info/top_level.txt +0 -0
- {lesscode_tag-0.0.2 → lesscode_tag-0.0.4}/setup.cfg +0 -0
- {lesscode_tag-0.0.2 → lesscode_tag-0.0.4}/setup.py +0 -0
|
@@ -116,13 +116,10 @@ def format_special_tag_list(special_tag_list=None):
|
|
|
116
116
|
if special_tag_list:
|
|
117
117
|
for special_tag in special_tag_list:
|
|
118
118
|
if isinstance(special_tag, list):
|
|
119
|
-
|
|
119
|
+
bool_must_list = []
|
|
120
120
|
for _tag in special_tag:
|
|
121
|
-
|
|
122
|
-
bool_should_list.append(
|
|
121
|
+
bool_must_list.append(get_single_tag_condition(_tag))
|
|
122
|
+
bool_should_list.append({"bool": {"must": bool_must_list}})
|
|
123
123
|
else:
|
|
124
124
|
bool_should_list.append(get_single_tag_condition(special_tag))
|
|
125
125
|
return {"bool": {"should": bool_should_list}}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
print(format_special_tag_list(["隐形冠军", "A股上市", "国家级专精特新"]))
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.0.4"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.2"
|
|
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
|