From b5e011f223f30bc7506e1b5dd16e67183c58345e Mon Sep 17 00:00:00 2001 From: Hydrus Network Developer Date: Wed, 13 Sep 2023 15:38:31 -0500 Subject: [PATCH] Fix for Mr Bones API request --- hydrus/client/db/ClientDB.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hydrus/client/db/ClientDB.py b/hydrus/client/db/ClientDB.py index af79785b..a1ab7f8e 100644 --- a/hydrus/client/db/ClientDB.py +++ b/hydrus/client/db/ClientDB.py @@ -2483,6 +2483,11 @@ class DB( HydrusDB.HydrusDB ): def _GetBonedStats( self, file_search_context: ClientSearch.FileSearchContext = None, job_key = None ): + if job_key is None: + + job_key = ClientThreading.JobKey() + + if file_search_context is None: file_search_context = ClientSearch.FileSearchContext(