Skip to content

Commit

Permalink
Merge pull request #7526 from BonaBeavis/patch-1
Browse files Browse the repository at this point in the history
Fix splitting of list
  • Loading branch information
amercader committed Jul 11, 2023
2 parents 539a04e + f104021 commit d46613e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ckan/cli/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
get_view_plugins,
get_default_view_plugins,
)
from ckan.plugins import plugin_loaded
from ckan.types import Context


Expand Down Expand Up @@ -48,13 +49,10 @@ def create(ctx: click.Context, types: list[str], dataset: list[str],
"""

datastore_enabled = (
u"datastore" in config[u"ckan.plugins"].split()
)

flask_app = ctx.meta['flask_app']
datastore_active = plugin_loaded("datastore")
with flask_app.test_request_context():
loaded_view_plugins = _get_view_plugins(types, datastore_enabled)
loaded_view_plugins = _get_view_plugins(types, datastore_active)
if loaded_view_plugins is None:
return
site_user = logic.get_action(u"get_site_user")({u"ignore_auth": True}, {})
Expand Down

0 comments on commit d46613e

Please sign in to comment.