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

Commit 4ec2a3eb authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update deploy.py in to improve Hal Hidden harvesters.

parent 7c8771b7
......@@ -262,29 +262,33 @@ def create_harvesters(opt, dfi, dfh):
data["controller"] = "articles"
li = ["a %s" % el.strip() for el in people.split(",")]
collection = "find %s and tc p and not tc c " % " or ".join(li)
auths = " or ".join(li)
collection = "find %s and tc p and not tc c " % auths
data["collections"] = collection
data["id_categories"] = CONTROLLER_TO_CAT["articles"]
insert_harvester(**data)
# systematic search in hall hidden
data["collection"] = \
data["collection"].replace("find", "find cc Hal Hidden and ")
collection = "find cc Hal Hidden and %s and not tc c " % auths
data["collections"] = collection
insert_harvester(**data)
# proceeding
data["controller"] = "proceedings"
collection = "find %s and tc c " % " or ".join(li)
collection = "find %s and tc c " % auths
data["collections"] = collection
data["id_categories"] = CONTROLLER_TO_CAT["proceedings"]
insert_harvester(**data)
# systematic search in hall hidden
data["collection"] = \
data["collection"].replace("find", "find cc Hal Hidden and ")
collection = "find cc Hal Hidden and %s and tc c " % auths
data["collections"] = collection
insert_harvester(**data)
continue
......@@ -525,7 +529,7 @@ if __name__ == "__main__":
if OPT.affiliation:
create_affiliation(OPT)
if OPT.commit():
if OPT.commit:
print "\n\tChange are committed to the database."
db.commit()
......
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