Commit 921e7be5 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added filter for processed entries for optimade.

parent 1dc52162
Pipeline #71538 failed with stages
in 13 minutes and 49 seconds
......@@ -43,7 +43,7 @@ def base_request_args():
def base_search_request():
''' Creates a search request for all public and optimade enabled data. '''
return search.SearchRequest().owner('all', None).query(
return search.SearchRequest().owner('all', None).search_parameter('processed', True).query(
Q('exists', field='dft.optimade.elements')) # TODO use the elastic annotations when done
......@@ -97,7 +97,7 @@ class Upload():
domain='dft', upload_id=self.upload_id, calc_id='test_calc_id_%d' % id,
mainfile='test_mainfile', published=True, with_embargo=False)
mainfile='test_mainfile', published=True, processed=True, with_embargo=False)
Supports Markdown
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