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

Commit bc78f8c5 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Propagate the method get_record_by_fields to all automatons.

parent e7cedef0
......@@ -72,13 +72,13 @@ class Notes(Automaton):
year = record.year()
# get existing notes
rec_id, status = self.get_by_fields(first_author=first_author,
id_categories=self.id_category,
id_projects=self.id_project,
id_teams=self.id_team,
oai_url=oai_url,
title=title,
year=year)
rec_id, status = self.get_record_by_fields(first_author=first_author,
id_categories=self.id_category,
id_projects=self.id_project,
id_teams=self.id_team,
oai_url=oai_url,
title=title,
year=year)
if rec_id:
return status
......
......@@ -99,14 +99,14 @@ class Preprints(Automaton):
id_collaboration = self.get_create_collaboration(record.collaboration())
# get existing preprint or article
rec_id, status = self.get_by_fields(first_author=first_author,
id_projects=self.id_project,
id_teams=self.id_team,
oai_url=oai_url,
preprint=preprint,
submitted=submitted,
title=title,
year=year)
rec_id, status = self.get_record_by_fields(first_author=first_author,
id_projects=self.id_project,
id_teams=self.id_team,
oai_url=oai_url,
preprint=preprint,
submitted=submitted,
title=title,
year=year)
if rec_id:
return status
......
......@@ -102,19 +102,19 @@ class Proceedings(Automaton):
id_publisher = self.get_create_publisher(editor)
# get an already published proceeding
rec_id, status = self.get_by_fields(authors=authors,
conference_title=conference_title,
first_author=first_author,
id_publishers=id_publisher,
oai_url=oai_url,
preprint=preprint,
pages=pages,
publication_url=url,
report_numbers=report_numbers,
submitted=submitted,
volume=volume,
title=title,
year=year)
rec_id, status = self.get_record_by_fields(authors=authors,
conference_title=conference_title,
first_author=first_author,
id_publishers=id_publisher,
oai_url=oai_url,
preprint=preprint,
pages=pages,
publication_url=url,
report_numbers=report_numbers,
submitted=submitted,
volume=volume,
title=title,
year=year)
if rec_id:
return status
......
......@@ -91,12 +91,12 @@ class Reports(Automaton):
id_collaboration = self.get_create_collaboration(record.collaboration())
# get an already published reports
rec_id, status = self.get_by_fields(id_categories=self.id_category,
id_projects=self.id_project,
id_teams=self.id_team,
oai_url=oai_url,
title=title,
year=year)
rec_id, status = self.get_record_by_fields(id_categories=self.id_category,
id_projects=self.id_project,
id_teams=self.id_team,
oai_url=oai_url,
title=title,
year=year)
if rec_id:
return status
......
......@@ -84,11 +84,11 @@ class Talks(Automaton):
id_collaboration = self.get_create_collaboration(record.collaboration())
# get an already published talk
rec_id, status = self.get_by_fields(conference_title=conference_title,
first_author=first_author,
oai_url=oai_url,
title=title,
year=year)
rec_id, status = self.get_record_by_fields(conference_title=conference_title,
first_author=first_author,
oai_url=oai_url,
title=title,
year=year)
if rec_id:
return status
......
......@@ -88,13 +88,13 @@ class Thesis(Automaton):
year = re.search(r"(\d\d\d\d)", defense_date).group(1)
# get an already published thesis
rec_id, status = self.get_by_fields(first_author=first_author,
defense=defense_date,
id_projects=self.id_project,
id_teams=self.id_team,
oai_url=oai_url,
title=title,
year=year)
rec_id, status = self.get_record_by_fields(first_author=first_author,
defense=defense_date,
id_projects=self.id_project,
id_teams=self.id_team,
oai_url=oai_url,
title=title,
year=year)
if rec_id:
return status
......
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