From 909c5de4f93fa022b5d450109ca60864e5ad01d4 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Fri, 29 Jul 2022 22:22:22 +0100 Subject: [PATCH] Fix variable used before definition in threshold lib --- core/lib/threshold.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/lib/threshold.py b/core/lib/threshold.py index ba1c94b..0a6fe17 100644 --- a/core/lib/threshold.py +++ b/core/lib/threshold.py @@ -28,6 +28,7 @@ def escape(obj): def sort_data(data): for item in data.keys(): if isinstance(data[item], list): + cont = False for v in data[item]: if isinstance(v, list): cont = True