Skip to content

Commit

Permalink
Update scoring.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptobench committed Oct 4, 2024
1 parent 7db9f46 commit 97efe44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stats-backend/api2/scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 97efe44

Please sign in to comment.