From dc7895e79f3b68e5236c9c1d89cba61b6d98639f Mon Sep 17 00:00:00 2001 From: db0 Date: Fri, 13 Sep 2024 10:41:53 +0200 Subject: [PATCH] test --- horde/database/functions.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/horde/database/functions.py b/horde/database/functions.py index 25fd9279..3f411f3a 100644 --- a/horde/database/functions.py +++ b/horde/database/functions.py @@ -1058,7 +1058,17 @@ def count_skipped_image_wp(worker, models_list=None, blacklist=None, priority_us skipped_wps = open_wp_list.filter( ImageWaitingPrompt.extra_slow_workers == False, # noqa E712 ).count() - logger.debug(open_wp_list.all()) + test = (db.session.query(ImageWaitingPrompt) + .options(noload(ImageWaitingPrompt.processing_gens)) + .outerjoin( + WPModels, + WPAllowedWorkers, + ) + .filter( + ImageWaitingPrompt.n > 0, + ) + ) + logger.debug(test.all()) if skipped_wps > 0: ret_dict["performance"] = ret_dict.get("performance",0) + skipped_wps # Count skipped WPs requiring trusted workers