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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lesscode_tag
3
- Version: 0.0.2
3
+ Version: 0.0.4
4
4
  Summary: lesscode_tag是标签处理工具包
5
5
  Author: Chao.yy
6
6
  Author-email: yuyc@ishangqi.com
@@ -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
- bool_should = []
119
+ bool_must_list = []
120
120
  for _tag in special_tag:
121
- bool_should.append(get_single_tag_condition(_tag))
122
- bool_should_list.append(bool_should)
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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lesscode-tag
3
- Version: 0.0.2
3
+ Version: 0.0.4
4
4
  Summary: lesscode_tag是标签处理工具包
5
5
  Author: Chao.yy
6
6
  Author-email: yuyc@ishangqi.com
@@ -1 +0,0 @@
1
- __version__ = "0.0.2"
File without changes
File without changes
File without changes