From a006b117eff415e8edd9c95b4af9297823031081 Mon Sep 17 00:00:00 2001 From: Dario Date: Mon, 18 Mar 2024 16:35:26 +0100 Subject: [PATCH] Fix history filter (develop) --- medusa/server/api/v2/history.py | 4 ++-- .../slim/src/components/history-detailed.vue | 15 ++++++++++++++- themes-default/slim/src/store/modules/history.js | 2 +- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/medusa/server/api/v2/history.py b/medusa/server/api/v2/history.py index 5ede978a60..ee28a3fd64 100644 --- a/medusa/server/api/v2/history.py +++ b/medusa/server/api/v2/history.py @@ -81,7 +81,7 @@ def get(self, series_slug, path_param): 'date': 'date', 'action': 'action', 'statusname': 'action', - 'provider.id': 'provider', + 'providerId': 'provider', 'clientstatus': 'client_status', 'size': 'size', 'quality': 'quality' @@ -95,7 +95,7 @@ def get(self, series_slug, path_param): if filter is not None and filter.get('columnFilters'): size = filter['columnFilters'].pop('size', None) - provider = filter['columnFilters'].pop('provider.id', None) + provider = filter['columnFilters'].pop('providerId', None) resource = filter['columnFilters'].pop('resource', None) if size: diff --git a/themes-default/slim/src/components/history-detailed.vue b/themes-default/slim/src/components/history-detailed.vue index 36de1e7763..9ea455bd55 100644 --- a/themes-default/slim/src/components/history-detailed.vue +++ b/themes-default/slim/src/components/history-detailed.vue @@ -99,6 +99,10 @@ + + + +