mirror of
https://github.com/RYGhub/royalnet.git
synced 2025-02-17 10:53:57 +00:00
Aggiunto sleep
This commit is contained in:
parent
f67c68e1f5
commit
9bbbbdadb7
1 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue