1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2025-02-17 10:53:57 +00:00

Aggiunto sleep

This commit is contained in:
Steffo 2018-06-09 17:27:55 +02:00
parent f67c68e1f5
commit 9bbbbdadb7

View file

@ -2,7 +2,7 @@ import db
import errors
import time
session = None
session: db.Session
# Stop updating if Ctrl-C is pressed
try:
while True:
@ -110,6 +110,10 @@ try:
print("Closing...\n\n")
session.close()
print("OK")
print("Waiting 1800s...\t\t")
for i in range(0, 20):
time.sleep(90)
print("")
except KeyboardInterrupt:
pass
finally: