From 880b4184f8550f2c46b31280c965a426cce6e6db Mon Sep 17 00:00:00 2001 From: Sny Date: Wed, 31 Jul 2024 12:28:11 +0530 Subject: [PATCH] OpenConceptLab/ocl_issues#1867 | Checksum | fixing resource types --- ocldev/checksum.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ocldev/checksum.py b/ocldev/checksum.py index bd88560..6c38fa0 100644 --- a/ocldev/checksum.py +++ b/ocldev/checksum.py @@ -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']: