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
99acc3a6
Commit
99acc3a6
authored
Jan 28, 2020
by
LE GAC Renaud
Browse files
Polish debug message for articles.py and automaton.py.
parent
ddee02ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 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/automaton.py
modules/harvest_tools/automaton.py
+4
-4
No files found.
modules/harvest_tools/articles.py
View file @
99acc3a6
...
@@ -46,7 +46,7 @@ class Articles(Automaton):
...
@@ -46,7 +46,7 @@ class Articles(Automaton):
return
False
return
False
if
self
.
dbg
:
if
self
.
dbg
:
print
(
"check article
record
"
)
print
(
"
\t
check
record
article"
)
try
:
try
:
...
...
modules/harvest_tools/automaton.py
View file @
99acc3a6
...
@@ -388,7 +388,7 @@ class Automaton(object):
...
@@ -388,7 +388,7 @@ class Automaton(object):
"""
"""
if
self
.
dbg
:
if
self
.
dbg
:
print
(
"check record"
)
print
(
"
\t
check record
automaton
"
)
try
:
try
:
# fix record with a missing OAI
# fix record with a missing OAI
...
@@ -564,7 +564,7 @@ class Automaton(object):
...
@@ -564,7 +564,7 @@ class Automaton(object):
"""
"""
if
self
.
dbg
:
if
self
.
dbg
:
print
(
"
\
n
processing record"
)
print
(
"
\
t
processing record"
,
recjson
[
"recid"
],
"(process_recjson)"
)
collection_logs
=
self
.
collection_logs
collection_logs
=
self
.
collection_logs
harvester
=
self
.
harvester
harvester
=
self
.
harvester
...
@@ -574,7 +574,7 @@ class Automaton(object):
...
@@ -574,7 +574,7 @@ class Automaton(object):
record
=
build_record
(
recjson
)
record
=
build_record
(
recjson
)
if
self
.
dbg
:
if
self
.
dbg
:
print
(
"
\t
"
,
record
.
title
()
.
encode
(
"utf-8"
)
)
print
(
f
"
\t
{
record
.
title
()
}
"
)
# start the log for the record
# start the log for the record
logs
.
append
(
Msg
(
harvester
=
harvester
,
logs
.
append
(
Msg
(
harvester
=
harvester
,
...
@@ -622,7 +622,7 @@ class Automaton(object):
...
@@ -622,7 +622,7 @@ class Automaton(object):
"""
"""
if
self
.
dbg
:
if
self
.
dbg
:
print
(
"
\n
processing
record"
,
rec_id
)
print
(
"
\n
get
record"
,
rec_id
,
"(process_recid)"
)
collection_logs
=
self
.
collection_logs
collection_logs
=
self
.
collection_logs
harvester
=
self
.
harvester
harvester
=
self
.
harvester
...
...
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