Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1867 | Checksum | fixing typo
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Jul 31, 2024
1 parent e523891 commit e2e6267
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions ocldev/checksum.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,24 +51,23 @@ def generate(self):

def _get_data_by_resource(self):
if self.resource == 'conceptname':
data = [self.get_concept_name_fields(_data) for _data in self.data]
return [self.get_concept_name_fields(_data) for _data in self.data]
if self.resource == 'conceptdescription':
data = [self.get_concept_description_fields(_data) for _data in self.data]
return [self.get_concept_description_fields(_data) for _data in self.data]
if self.resource == 'concept':
data = [self.get_concept_fields(_data) for _data in self.data]
elif self.resource == 'mapping':
data = [self.get_mapping_fields(_data) for _data in self.data]
elif self.resource in ['organization', 'org']:
data = [self.get_organization_fields(_data) for _data in self.data]
elif self.resource in ['user', 'userprofile']:
data = [self.get_user_fields(_data) for _data in self.data]
elif self.resource == 'source':
data = [self.get_source_fields(_data) for _data in self.data]
elif self.resource == 'collection':
data = [self.get_collection_fields(_data) for _data in self.data]
else:
data = self.data
return data
return [self.get_concept_fields(_data) for _data in self.data]
if self.resource == 'mapping':
return [self.get_mapping_fields(_data) for _data in self.data]
if self.resource in ['organization', 'org']:
return [self.get_organization_fields(_data) for _data in self.data]
if self.resource in ['user', 'userprofile']:
return [self.get_user_fields(_data) for _data in self.data]
if self.resource == 'source':
return [self.get_source_fields(_data) for _data in self.data]
if self.resource == 'collection':
return [self.get_collection_fields(_data) for _data in self.data]

return self.data

@staticmethod
def get_concept_name_fields(data):
Expand Down

0 comments on commit e2e6267

Please sign in to comment.