From 98246101e446bc84f6031a95540c2981c1bebba9 Mon Sep 17 00:00:00 2001 From: Dario Date: Sun, 17 Mar 2024 18:37:43 +0100 Subject: [PATCH] Fix history view elements (2) (#11655) --- medusa/server/api/v2/history.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/medusa/server/api/v2/history.py b/medusa/server/api/v2/history.py index f6a75219bd..5ede978a60 100644 --- a/medusa/server/api/v2/history.py +++ b/medusa/server/api/v2/history.py @@ -53,8 +53,8 @@ def get(self, series_slug, path_param): compact_layout = bool(self.get_argument('compact', default=False)) return_last = bool(self.get_argument('last', default=False)) total_rows = self.get_argument('total', default=None) - sort = [json.loads(item) for item in self.get_arguments('sort')] - filter = json.loads(self.get_argument('filter')) if self.get_arguments('filter') else None + sort = json.loads(self.get_argument('sort', default='null')) + filter = json.loads(self.get_argument('filter', default='null')) headers = {}