Commit dc680c36 authored by Derek Fukumori's avatar Derek Fukumori
Browse files

scandata: remove check for {identifier}_scandata.xml

parent 4a1615bb
......@@ -24,7 +24,6 @@ def get_scandata_xml(identifier, source_file):
zip_path = item_dir/''
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():
Supports Markdown
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