Skip to content

Commit

Permalink
Merge pull request OpenGov-OpenData#1 from OpenGov-OpenData/jguo144/P…
Browse files Browse the repository at this point in the history
…A-786/2019-10-02/update-datastore-sql-api-example

[PA-786] Update datastore sql API example
  • Loading branch information
jguo144 authored Oct 2, 2019
2 parents 57bb8d5 + 1d46170 commit 01ca5e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/odata/templates/ajax_snippets/api_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#}

{% set resource_id = h.sanitize_id(resource_id) %}
{% set sql_example_url = h.url_for(controller='api', action='action', ver=3, logic_function='datastore_search_sql', qualified=True) + '?sql=SELECT * from "' + resource_id + '" WHERE title LIKE \'jones\'' %}
{% set sql_example_url = h.url_for(controller='api', action='action', ver=3, logic_function='datastore_search_sql', qualified=True) + '?sql=SELECT * from "' + resource_id + '" WHERE \"title\" LIKE \'jones\'' %}
{# not urlencoding the sql because its clearer #}
<div{% if not embedded %} class="modal"{% endif %}>
<div class="modal-header">
Expand Down Expand Up @@ -150,4 +150,4 @@ <h3>

</div>

</div>
</div>

0 comments on commit 01ca5e7

Please sign in to comment.