Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ckanext-odsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open-Data
ckanext-odsh
Commits
54f407b6
Commit
54f407b6
authored
6 years ago
by
Dennis
Browse files
Options
Downloads
Patches
Plain Diff
search term to lower case
parent
6ce4219c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ckanext/odsh/logic/action.py
+1
-1
1 addition, 1 deletion
ckanext/odsh/logic/action.py
ckanext/odsh/plugin.py
+1
-0
1 addition, 0 deletions
ckanext/odsh/plugin.py
with
2 additions
and
1 deletion
ckanext/odsh/logic/action.py
+
1
−
1
View file @
54f407b6
...
@@ -42,7 +42,7 @@ def odsh_user_create(context, data_dict):
...
@@ -42,7 +42,7 @@ def odsh_user_create(context, data_dict):
@toolkit.side_effect_free
@toolkit.side_effect_free
def
autocomplete
(
context
,
data_dict
):
def
autocomplete
(
context
,
data_dict
):
query
=
{
query
=
{
'
terms.prefix
'
:
data_dict
[
'
q
'
],
'
terms.prefix
'
:
data_dict
[
'
q
'
]
.
lower
()
,
'
terms.limit
'
:
20
}
'
terms.limit
'
:
20
}
conn
=
make_connection
(
decode_dates
=
False
)
conn
=
make_connection
(
decode_dates
=
False
)
...
...
This diff is collapsed.
Click to expand it.
ckanext/odsh/plugin.py
+
1
−
0
View file @
54f407b6
...
@@ -90,6 +90,7 @@ class OdshAutocompletePlugin(plugins.SingletonPlugin):
...
@@ -90,6 +90,7 @@ class OdshAutocompletePlugin(plugins.SingletonPlugin):
def
get_actions
(
self
):
def
get_actions
(
self
):
return
{
'
autocomplete
'
:
action
.
autocomplete
}
return
{
'
autocomplete
'
:
action
.
autocomplete
}
class
OdshHarvestPlugin
(
plugins
.
SingletonPlugin
):
class
OdshHarvestPlugin
(
plugins
.
SingletonPlugin
):
plugins
.
implements
(
plugins
.
IRoutes
,
inherit
=
True
)
plugins
.
implements
(
plugins
.
IRoutes
,
inherit
=
True
)
plugins
.
implements
(
plugins
.
IConfigurer
)
plugins
.
implements
(
plugins
.
IConfigurer
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment