Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 21d028a5 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update Automaton to use map instead of list comprehension.

parent 219a896c
......@@ -527,6 +527,7 @@ class Automaton(object):
rec_ids = store.get_ids(**kwargs)
except CdsException as error:
logger.debug(f"exit process_collection: {error}")
collection_logs[-1].url = store.last_search_url()
collection_logs[-1].error = error
return
......@@ -547,7 +548,7 @@ class Automaton(object):
rec_ids = [el for el in rec_ids if func(ctitle, host, el) == 0]
# process the remaining identifiers
[self.process_recid(rec_id) for rec_id in rec_ids]
(*map(self.process_recid, rec_ids), )
def process_recjson(self, recjson):
"""Process the publication provided as a JSON record:
......@@ -672,7 +673,7 @@ class Automaton(object):
collections = re.sub(" *, *", ",", collections).split(",")
# process
[self.process_collection(collection) for collection in collections]
(*map(self.process_collection, collections), )
def report(self):
"""Build the processing report.
......
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