Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Merlijn Wajer
Python Derivermodule
Commits
dc680c36
Commit
dc680c36
authored
Dec 21, 2020
by
Derek Fukumori
Browse files
scandata: remove check for {identifier}_scandata.xml
parent
4a1615bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
derivermodule/scandata.py
View file @
dc680c36
...
...
@@ -24,7 +24,6 @@ def get_scandata_xml(identifier, source_file):
zip_path
=
item_dir
/
'scandata.zip'
raw_xml_path
=
item_dir
/
'scandata.xml'
identifier_xml_path
=
item_dir
/
f
'
{
identifier
}
_scandata.xml'
if
source_file
:
if
source_file
.
endswith
(
'page_numbers.json'
):
source_xml_path
=
Path
(
f
'
{
source_file
[
:
-
18
]
}
_scandata.xml'
)
...
...
@@ -33,8 +32,6 @@ def get_scandata_xml(identifier, source_file):
if
source_xml_path
.
exists
():
return
str
(
source_xml_path
)
elif
identifier_xml_path
.
exists
():
return
str
(
identifier_xml_path
)
elif
raw_xml_path
.
exists
():
return
str
(
raw_xml_path
)
elif
zip_path
.
exists
():
...
...
Write
Preview
Supports
Markdown
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