From a029f4115deedc70198857dc728498212d34b2cf Mon Sep 17 00:00:00 2001 From: Sergey Motornyuk Date: Fri, 24 Nov 2023 20:09:51 +0200 Subject: [PATCH] chore: consistent snapshot output --- ckanext/search_tweaks/query_popularity/logic/action.py | 5 ++--- setup.cfg | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ckanext/search_tweaks/query_popularity/logic/action.py b/ckanext/search_tweaks/query_popularity/logic/action.py index 814b742..94c87e8 100644 --- a/ckanext/search_tweaks/query_popularity/logic/action.py +++ b/ckanext/search_tweaks/query_popularity/logic/action.py @@ -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) diff --git a/setup.cfg b/setup.cfg index 4042377..9e97077 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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