Skip to content

Commit

Permalink
Fix ckan version comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
agmorev committed Apr 1, 2024
1 parent 8d62a28 commit 41d7508
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% import 'macros/form.html' as form %}

{% set read_endpoint = '.read' if h.ckan_version() > '2.9' else '_read' %}
{% set read_endpoint = '.read' if h.ckan_version().split('.')[1] | int >= 9 else '_read' %}

{%- if entity_type == 'dataset' %}
{%- set controller = 'package' -%}
Expand Down

0 comments on commit 41d7508

Please sign in to comment.