mjanez / ckanext-schemingdcat

Improved ckanext-scheming with DCAT, DCAT-AP and GeoDCAT-AP/INSPIRE custom schemas and tools.
https://github.com/mjanez/ckan-docker
GNU Affero General Public License v3.0
0 stars 2 forks source link

Refactor dataset scope validation logic (schemingdcat_dataset_scope) #63

Closed mjanez closed 3 months ago

mjanez commented 3 months ago

The code changes in validators.py refactor the dataset scope validation logic. The schemingdcat_dataset_scope function now uses a dictionary comprehension to generate the choices_dict instead of a conditional statement. This improves the readability and maintainability of the code.