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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open-Data
ckanext-odsh
Commits
575800dc
Commit
575800dc
authored
1 year ago
by
Thorge Petersen
Browse files
Options
Downloads
Patches
Plain Diff
Clear qa property from package dict before indexing dataset
parent
f2f2db73
No related branches found
No related tags found
1 merge request
!50
Upgraded to CKAN 2.10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ckanext/odsh/plugin.py
+4
-0
4 additions, 0 deletions
ckanext/odsh/plugin.py
with
4 additions
and
0 deletions
ckanext/odsh/plugin.py
+
4
−
0
View file @
575800dc
...
@@ -116,6 +116,7 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
...
@@ -116,6 +116,7 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
def
after_map
(
self
,
map
):
def
after_map
(
self
,
map
):
return
map
return
map
def
package_types
(
self
):
def
package_types
(
self
):
# This plugin doesn't handle any special package types, it just
# This plugin doesn't handle any special package types, it just
# registers itself as the default (above).
# registers itself as the default (above).
...
@@ -299,6 +300,9 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
...
@@ -299,6 +300,9 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
self
.
map_qa_score
(
dict_pkg
)
self
.
map_qa_score
(
dict_pkg
)
if
'
qa
'
in
dict_pkg
:
dict_pkg
.
pop
(
'
qa
'
)
return
dict_pkg
return
dict_pkg
# Add the custom parameters to Solr's facet queries
# Add the custom parameters to Solr's facet queries
...
...
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