Skip to content
Snippets Groups Projects
Commit fd069917 authored by Philipp Schneider's avatar Philipp Schneider
Browse files

Replace underscores in URIs with dashes

parent edf117fd
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ def construct_new_coa_uri(coa_id):
if '_' in str(coa_id):
last_id_part = coa_id.split('_', maxsplit=1)[1]
first_id_part = str(coa_id.split('_', maxsplit=1)[0]).zfill(10)
complete_id = first_id_part + '_' + last_id_part
complete_id = first_id_part + '-' + last_id_part
else:
complete_id = str(coa_id).zfill(10)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment