Commit f83130d4 authored by Thomas Bernhart's avatar Thomas Bernhart
Browse files

Always use lowercase old recordset ID when mapping to new recordset ID

parent 41209cea
......@@ -7,12 +7,12 @@ class RecordSetIdMapper:
self.__old2new = {}
with open(records_sets_file, 'r') as csv_file:
for row in DictReader(csv_file):
old_id = row['identifier_old']
old_id = row['identifier_old'].lower()
new_id = row['identifier_new']
self.__old2new[old_id] = new_id
def mapping_exists(self, old_id):
return old_id in self.__old2new
return old_id.lower() in self.__old2new
def get_new_record_set_id(self, old_id):
return self.__old2new[old_id]
return self.__old2new[old_id.lower()]
Markdown is supported
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