Make sure it only reports new relays from this hour

master
HackerNCoder 2 years ago
parent d3ec82488d
commit 170ab11130

@ -30,7 +30,7 @@ status = ""
#print("starting diff")
for new_relay in relays:
if datetime.datetime.strptime(new_relay["first_seen"], "%Y-%m-%d %H:%M:%S") > (datetime.datetime.utcnow() - datetime.timedelta(hours=2)):
if datetime.datetime.strptime(new_relay["first_seen"], "%Y-%m-%d %H:%M:%S") > (datetime.datetime.utcnow() - datetime.timedelta(hours=1)):
#added_relays += new_relay[1]["fingerprint"] + "\n"
exit = "no"
if new_relay["exit_policy"][0] != "reject *:*":

Loading…
Cancel
Save