lesscode-tag 0.0.22__tar.gz → 0.0.24__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
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.1
2
2
  Name: lesscode_tag
3
- Version: 0.0.22
3
+ Version: 0.0.24
4
4
  Summary: lesscode_tag是标签处理工具包
5
5
  Author: Chao.yy
6
6
  Author-email: yuyc@ishangqi.com
@@ -9,16 +9,6 @@ Classifier: Programming Language :: Python :: 3
9
9
  Classifier: Operating System :: OS Independent
10
10
  Requires-Python: >=3.6
11
11
  Description-Content-Type: text/markdown
12
- Requires-Dist: lesscode_utils>=0.0.1
13
- Dynamic: author
14
- Dynamic: author-email
15
- Dynamic: classifier
16
- Dynamic: description
17
- Dynamic: description-content-type
18
- Dynamic: platform
19
- Dynamic: requires-dist
20
- Dynamic: requires-python
21
- Dynamic: summary
22
12
 
23
13
  # lesscode_tag
24
14
 
@@ -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 ["已上市", "新三板挂牌"]:
@@ -227,6 +227,19 @@ def format_ck_param_tag(bool_should_more_list, especial_tag_list):
227
227
  "value": [
228
228
  {"relation": "has", "column": "diy_tag_id", "value": 8}]}]
229
229
  })
230
+ if tag == "专精特新":
231
+ bool_should_list["value"].append({
232
+ "relation": "hasAny",
233
+ "column": "diy_tag_id",
234
+ "value": [3, 8]
235
+ })
236
+ if tag == "单项冠军":
237
+ bool_should_list["value"].append({
238
+ "relation": "hasAny",
239
+ "column": "diy_tag_id",
240
+ "value": [11, 13]
241
+ })
242
+
230
243
  if tag == "科技型中小企业":
231
244
  bool_should_list["value"].append({
232
245
  "relation": "has",
@@ -0,0 +1 @@
1
+ __version__ = "0.0.24"
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
2
- Name: lesscode_tag
3
- Version: 0.0.22
1
+ Metadata-Version: 2.1
2
+ Name: lesscode-tag
3
+ Version: 0.0.24
4
4
  Summary: lesscode_tag是标签处理工具包
5
5
  Author: Chao.yy
6
6
  Author-email: yuyc@ishangqi.com
@@ -9,16 +9,6 @@ Classifier: Programming Language :: Python :: 3
9
9
  Classifier: Operating System :: OS Independent
10
10
  Requires-Python: >=3.6
11
11
  Description-Content-Type: text/markdown
12
- Requires-Dist: lesscode_utils>=0.0.1
13
- Dynamic: author
14
- Dynamic: author-email
15
- Dynamic: classifier
16
- Dynamic: description
17
- Dynamic: description-content-type
18
- Dynamic: platform
19
- Dynamic: requires-dist
20
- Dynamic: requires-python
21
- Dynamic: summary
22
12
 
23
13
  # lesscode_tag
24
14
 
@@ -1 +0,0 @@
1
- __version__ = "0.0.22"
File without changes
File without changes
File without changes