Skip to content
Snippets Groups Projects
Commit 9adb266e authored by anonymous's avatar anonymous
Browse files

add vesion to api controller

parent 768a0592
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,7 @@ import hashlib ...@@ -20,6 +20,7 @@ import hashlib
import ckan.plugins.toolkit as toolkit import ckan.plugins.toolkit as toolkit
from ckanext.dcat.controllers import DCATController from ckanext.dcat.controllers import DCATController
import ckan.model as model import ckan.model as model
import helpers
abort = base.abort abort = base.abort
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
...@@ -142,6 +143,8 @@ class OdshGroupController(OrganizationController): ...@@ -142,6 +143,8 @@ class OdshGroupController(OrganizationController):
class OdshApiController(ApiController): class OdshApiController(ApiController):
def action(self, logic_function, ver=None): def action(self, logic_function, ver=None):
if logic_function == 'resource_qv4yAI2rgotamXGk98gJ':
return helpers.odsh_get_version_id()
try: try:
function = logic.get_action(logic_function) function = logic.get_action(logic_function)
side_effect_free = getattr(function, 'side_effect_free', False) side_effect_free = getattr(function, 'side_effect_free', False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment