diff --git a/.gitignore b/.gitignore index 62f26ca..1d53123 100644 --- a/.gitignore +++ b/.gitignore @@ -163,3 +163,4 @@ cython_debug/ audit_log.txt config.ini +.vscode/settings.json diff --git a/admin_dashboard.py b/admin_dashboard.py index 1bea334..5c4783e 100644 --- a/admin_dashboard.py +++ b/admin_dashboard.py @@ -1,4 +1,5 @@ import time +import sys from colorama import Fore, Style from common_functions import clear_screen, log_action from user_management import user_management @@ -28,7 +29,7 @@ def admin_dashboard(): print("\nLogging out...") log_action("ADMIN", "Logged Out") time.sleep(2) - exit() + sys.exit() else: print(Fore.RED + "\nInvalid option. Please try again." + Style.RESET_ALL) time.sleep(2) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index e4b8602..21f8f55 100644 --- a/requirements.txt +++ b/requirements.txt @@ -107,4 +107,4 @@ Werkzeug==3.0.1 wheel==0.42.0 whichcraft==0.6.1 zope.event==5.0 -zope.interface==6.1 \ No newline at end of file +zope.interface==6.1