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

Revert commit f83130

parent 82ee89c0
......@@ -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'].lower()
old_id = row['identifier_old']
new_id = row['identifier_new']
self.__old2new[old_id] = new_id
def mapping_exists(self, old_id):
return old_id.lower() in self.__old2new
return old_id in self.__old2new
def get_new_record_set_id(self, old_id):
return self.__old2new[old_id.lower()]
return self.__old2new[old_id]
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