From bf405d6be43cff5308868c13734f95a3dbfec133 Mon Sep 17 00:00:00 2001 From: db0 Date: Sun, 14 Apr 2024 16:00:42 +0200 Subject: [PATCH] test --- horde/classes/stable/waiting_prompt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/horde/classes/stable/waiting_prompt.py b/horde/classes/stable/waiting_prompt.py index d449535d..0ba88559 100644 --- a/horde/classes/stable/waiting_prompt.py +++ b/horde/classes/stable/waiting_prompt.py @@ -374,6 +374,8 @@ def require_upfront_kudos(self, counted_totals, total_threads): # if 'RealESRGAN_x4plus' in self.gen_payload.get('post_processing', []): # return(True,max_res) # if HORDE_UPFRONT_KUDOS_ON_WORKERLIST is set to 1, then specifying a worker allow/deny list requires upfront kudos + logger.debug(len(self.workers)) + logger.debug(self.workers) if os.getenv("HORDE_UPFRONT_KUDOS_ON_WORKERLIST", 0) == 1 and len(self.workers) > 0: return (True, max_res) return (False, max_res)