Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
limbra
limbra
Commits
bef21e0a
Commit
bef21e0a
authored
Jan 18, 2021
by
LE GAC Renaud
Browse files
Invert subtype check in automatons
parent
37152f70
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
modules/harvest_tools/articles.py
modules/harvest_tools/articles.py
+1
-1
modules/harvest_tools/notes.py
modules/harvest_tools/notes.py
+1
-1
modules/harvest_tools/preprints.py
modules/harvest_tools/preprints.py
+1
-1
modules/harvest_tools/proceedings.py
modules/harvest_tools/proceedings.py
+1
-1
modules/harvest_tools/thesis.py
modules/harvest_tools/thesis.py
+1
-1
No files found.
modules/harvest_tools/articles.py
View file @
bef21e0a
...
...
@@ -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
...
...
modules/harvest_tools/notes.py
View file @
bef21e0a
...
...
@@ -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
...
...
modules/harvest_tools/preprints.py
View file @
bef21e0a
...
...
@@ -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
...
...
modules/harvest_tools/proceedings.py
View file @
bef21e0a
...
...
@@ -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
...
...
modules/harvest_tools/thesis.py
View file @
bef21e0a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment