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

Invert subtype check in automatons

parent 37152f70
......@@ -55,7 +55,7 @@ class Articles(Automaton):
"""
self.logger.debug(f"{T4}check and fix record (article)")
if record.subtype() == "article":
if record.subtype() != "article":
self.logs[-1].reject(MSG_NOT_ARTICLE, record)
return False
......
......@@ -35,7 +35,7 @@ class Notes(Automaton):
"""
self.logger.debug(f"{T4}check and fix record (note)")
if record.subtype() == "note":
if record.subtype() != "note":
self.logs[-1].reject(MSG_NOT_NOTE, record)
return False
......
......@@ -43,7 +43,7 @@ class Preprints(Automaton):
"""
self.logger.debug(f"{T4}check and fix record (preprint)")
if record.subtype() == "preprint":
if record.subtype() != "preprint":
self.logs[-1].reject(MSG_NOT_PREPRINT, record)
return False
......
......@@ -41,7 +41,7 @@ class Proceedings(Automaton):
"""
self.logger.debug(f"{T4}check and fix record (proceeding)")
if record.subtype() == "proceeding":
if record.subtype() != "proceeding":
self.logs[-1].reject(MSG_NOT_PROCEEDING, record)
return False
......
......@@ -31,7 +31,7 @@ class Thesis(Automaton):
"""
self.logger.debug(f"{T4}check and fix record (thesis)")
if record.subtype() == "thesis":
if record.subtype() != "thesis":
self.logs[-1].reject(MSG_NOT_THESIS, record)
return False
......
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