Skip to content

Commit

Permalink
chore: consistent snapshot output
Browse files Browse the repository at this point in the history
  • Loading branch information
smotornyuk committed Nov 24, 2023
1 parent c31bd8c commit a029f41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions ckanext/search_tweaks/query_popularity/logic/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ def search_tweaks_query_popularity_list(
@tk.side_effect_free
def search_tweaks_query_popularity_export(
context: types.Context, data_dict: dict[str, Any]
) -> dict[str, Any]:
) -> list[Any]:
score = Score()

results = score.export()
return {"snapshot": results}
return score.export()


@validate(schema.query_popularity_import)
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = ckanext-search-tweaks
version = 0.6.1a2
version = 0.6.1a3
description =
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down

0 comments on commit a029f41

Please sign in to comment.