From c31bd8cb491228d004d8dcebe6e405f1b41ad0e0 Mon Sep 17 00:00:00 2001 From: Sergey Motornyuk Date: Fri, 24 Nov 2023 20:01:04 +0200 Subject: [PATCH] chore: consistent snapshot output --- ckanext/search_tweaks/query_popularity/logic/action.py | 2 +- setup.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ckanext/search_tweaks/query_popularity/logic/action.py b/ckanext/search_tweaks/query_popularity/logic/action.py index 026f076..814b742 100644 --- a/ckanext/search_tweaks/query_popularity/logic/action.py +++ b/ckanext/search_tweaks/query_popularity/logic/action.py @@ -29,7 +29,7 @@ def search_tweaks_query_popularity_export( score = Score() results = score.export() - return {"results": results, "count": len(results)} + return {"snapshot": results} @validate(schema.query_popularity_import) diff --git a/setup.cfg b/setup.cfg index c53fa39..4042377 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = ckanext-search-tweaks -version = 0.6.1a1 +version = 0.6.1a2 description = long_description = file: README.md long_description_content_type = text/markdown