Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
when a node goes online, we dont care about the old note
Browse files Browse the repository at this point in the history
  • Loading branch information
David Whiteside committed Nov 28, 2016
1 parent a6a794d commit 0b531da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tracknodes/tracknodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def online_nodes(self):
onlinenodes.append(lx)

for node in onlinenodes:
self.cur.execute("INSERT INTO NodeStates VALUES(?, ?, ?, datetime('now'))", (node[0], 0, node[2]))
self.cur.execute("INSERT INTO NodeStates VALUES(?, ?, ?, datetime('now'))", (node[0], 0, ''))
self.cur.execute("DELETE FROM CurrentFailedNodes WHERE Name LIKE ?", (node[0],))
self.con.commit()

Expand Down

0 comments on commit 0b531da

Please sign in to comment.