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

Commit 90192b42 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update filter_logs to add protection

parent 8920bf7b
......@@ -48,9 +48,15 @@ def filter_logs(logs):
if len(logs) == 0:
return logs
data = [{"oais": dct["oais"]} for dct in logs]
df = pd.DataFrame(data)
if df.empty:
return logs
# tag primary OAI as cds or ins
df["first_oai"] = df.oais.str.extract(r"oai:(\w{3})", expand=True)
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