Commit c6dc1c1a authored by litaolemo's avatar litaolemo

update

parent 04978288
...@@ -46,9 +46,9 @@ def get_releaserUrls_from_es(platform, ...@@ -46,9 +46,9 @@ def get_releaserUrls_from_es(platform,
frequency=None, frequency=None,
target_index=None, target_index=None,
project_tags=[]): project_tags=[]):
search_body = {"query": {"bool": {"filter": [{"term": {"platform.keyword": platform}}]}}} search_body = {"query": {"bool": {"filter": [{"term": {"platform": platform}}]}}}
if releaser is not None: if releaser is not None:
releaser_dict = {"term": {"releaser.keyword": releaser}} releaser_dict = {"term": {"releaser": releaser}}
search_body['query']['bool']['filter'].append(releaser_dict) search_body['query']['bool']['filter'].append(releaser_dict)
# if frequency is not None: # if frequency is not None:
# frequency_dict = {"range": {"frequency": {"gte": frequency}}} # frequency_dict = {"range": {"frequency": {"gte": frequency}}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment