From ec2645b0a2b0e8caf99b21aed253c370b6d10cdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Wed, 2 Nov 2022 02:56:47 +0100 Subject: [PATCH] fixed stats_counters --- server/src/uds/models/stats_counters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/uds/models/stats_counters.py b/server/src/uds/models/stats_counters.py index 8d1abc876..bc48ab4a9 100644 --- a/server/src/uds/models/stats_counters.py +++ b/server/src/uds/models/stats_counters.py @@ -116,7 +116,7 @@ class StatsCounters(models.Model): interval = kwargs.get('interval') or 600 # Max intervals, if present, will adjust interval (that are seconds) - max_intervals = kwargs.get('max_intervals', 0) + max_intervals = kwargs.get('max_intervals') or 0 if max_intervals > 0: count = q.count() if max_intervals < count: