diff --git a/nodes.py b/nodes.py index d2b9df8..23a2b0e 100644 --- a/nodes.py +++ b/nodes.py @@ -27,8 +27,8 @@ def prune_nodes(nodes, now, days): if delta >= days * 86400: prune.append(node_id) - for prune_key in prune: - del nodes[prune_key] + for node_id in prune: + del nodes[node_id] def mark_online(node, now):