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

Commit 6ac920cb authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update harvest_tools/preprints to use logger.

parent 8881f26d
......@@ -16,7 +16,9 @@ from plugin_dbui import get_id, UNDEF_ID
MSG_NO_EDITOR = "Reject article is not published"
MSG_TRANSFORM_PREPRINT = "Transform the preprint into an article"
T4 = " "*4
T6 = " "*6
class Articles(Automaton):
......@@ -131,7 +133,7 @@ class Articles(Automaton):
modified into article, zero otherwise
"""
self.logger.debug(f"{T4}get existing article by fields")
self.logger.debug(f"{T6}check existing article by fields")
# alias
db = self.db
......@@ -246,7 +248,7 @@ class Articles(Automaton):
modified into article, zero otherwise
"""
self.logger.debug(f"{T4}check existing article by origin")
self.logger.debug(f"{T6}check existing article by origin")
# alias
db = self.db
......
......@@ -16,6 +16,8 @@ MSG_PREPRINT_IS_CONFERENCE = "Reject preprint is a conference"
MSG_PREPRINT_IS_THESIS = "Reject preprint is a thesis"
MSG_PREPRINT_NO_NUMBER = "Reject no preprint number"
T4 = " "*4
class Preprints(Automaton):
"""Automaton for preprints.
......@@ -37,8 +39,7 @@ class Preprints(Automaton):
if not Automaton.check_record(self, record):
return False
if self.dbg:
print("check preprint record")
self.logger.debug(f"{T4}check record (preprint)")
if record.is_published():
self.logs[-1].reject(MSG_PREPRINT_IS_PAPER, record=record)
......
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