lesscode-tag 0.0.22__tar.gz → 0.0.23__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.2
2
2
  Name: lesscode_tag
3
- Version: 0.0.22
3
+ Version: 0.0.23
4
4
  Summary: lesscode_tag是标签处理工具包
5
5
  Author: Chao.yy
6
6
  Author-email: yuyc@ishangqi.com
@@ -178,7 +178,7 @@ def format_special_tag_list(special_tag_list=None):
178
178
  return {"bool": {"should": bool_should_list}}
179
179
 
180
180
 
181
- def format_ck_param_tag(bool_should_more_list, especial_tag_list):
181
+ def format_ck_param_tag(bool_should_more_list, especial_tag_list, bool_relation="or"):
182
182
  diy_tag = {
183
183
  "员工增长快": 1,
184
184
  "新增专利多": 2,
@@ -199,7 +199,7 @@ def format_ck_param_tag(bool_should_more_list, especial_tag_list):
199
199
  "世界企业500强": 20
200
200
  }
201
201
 
202
- bool_should_list = {"relation": "and", "value": []}
202
+ bool_should_list = {"relation": bool_relation, "value": []}
203
203
  if especial_tag_list is not None:
204
204
  for tag in especial_tag_list:
205
205
  if tag in ["已上市", "新三板挂牌"]:
@@ -0,0 +1 @@
1
+ __version__ = "0.0.23"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: lesscode_tag
3
- Version: 0.0.22
3
+ Version: 0.0.23
4
4
  Summary: lesscode_tag是标签处理工具包
5
5
  Author: Chao.yy
6
6
  Author-email: yuyc@ishangqi.com
@@ -1 +0,0 @@
1
- __version__ = "0.0.22"
File without changes
File without changes
File without changes