Implement flag handling and migration status checks; refactor database test functions and update requirements
This commit is contained in:
@@ -3,6 +3,7 @@ import logging
|
||||
import time
|
||||
import os
|
||||
import sys
|
||||
from flags import status
|
||||
|
||||
|
||||
print("loading")
|
||||
@@ -129,7 +130,6 @@ def exit_programm():
|
||||
print("")
|
||||
print("Disconnect DB")
|
||||
print("logout")
|
||||
os.remove("migration_status.flag")
|
||||
print("shutting down")
|
||||
time.sleep(0.75)
|
||||
os.system('cls' if os.name == 'nt' else 'clear')
|
||||
@@ -178,7 +178,7 @@ def menu():
|
||||
|
||||
|
||||
#The Terminal App Starts here
|
||||
time.sleep(5)
|
||||
time.sleep(2)
|
||||
print(r"""
|
||||
## ## ##########
|
||||
### ### ## ##
|
||||
@@ -187,8 +187,8 @@ print(r"""
|
||||
## ## ## ## ##
|
||||
## ## ## ##
|
||||
""")
|
||||
while not status.get_migration():
|
||||
time.sleep(0.5)
|
||||
logging.info("Menu is starting")
|
||||
time.sleep(2.5)
|
||||
while not os.path.exists("migration_status.flag"):
|
||||
time.sleep(0.5)
|
||||
menu()
|
||||
|
||||
Reference in New Issue
Block a user