From 97efe44f8aabe911559fabaa90958cad34fd132e Mon Sep 17 00:00:00 2001 From: Phillip Jensen Date: Fri, 4 Oct 2024 15:31:06 +0200 Subject: [PATCH] Update scoring.py --- stats-backend/api2/scoring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stats-backend/api2/scoring.py b/stats-backend/api2/scoring.py index be750d6..2a3db48 100644 --- a/stats-backend/api2/scoring.py +++ b/stats-backend/api2/scoring.py @@ -6,7 +6,7 @@ def calculate_uptime_percentage(node_id, node=None): if node is None: node = Node.objects.get(node_id=node_id) - statuses = NodeStatusHistory.objects.filter(node_id=node_id, is_online=True).order_by("timestamp") + statuses = NodeStatusHistory.objects.filter(node_id=node_id).order_by("timestamp") first_online_status = statuses.first() if not first_online_status: