Implement flag handling and migration status checks; refactor database test functions and update requirements

This commit is contained in:
Mabe
2026-09-26 16:21:44 -07:00
parent 220a06208a
commit 087fed017a
6 changed files with 126 additions and 12 deletions
+4 -4
View File
@@ -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()