Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1867 | Checksum | fixing resource types
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Jul 31, 2024
1 parent 35342b7 commit 880b418
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ocldev/checksum.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ def __init__(self, resource, data, checksum_type='standard', verbosity=0):
self.data = self.flatten([data])
self.verbosity = verbosity
if self.resource and self.resource.lower() not in [
'concept', 'mapping', 'source', 'collection', 'organization', 'org', 'user', 'userprofile',
'conceptname', 'conceptdescription'
'conceptname', 'conceptnames', 'conceptdescription', 'conceptdescriptions',
'concept', 'concepts', 'concept_version', 'concept_versions',
'mapping', 'mappings', 'mapping_version', 'mapping_versions',
'organization', 'org', 'orgs', 'organizations',
'user', 'userprofile', 'users', 'userprofiles',
'source', 'sources', 'source_version', 'source_versions',
'collection', 'collections', 'collection_version', 'collection_versions'
]:
raise ValueError(f"Invalid resource: {self.resource}")
if self.checksum_type not in ['standard', 'smart']:
Expand Down

0 comments on commit 880b418

Please sign in to comment.