Skip to content

Commit bd2c40c

Browse files
committed
Refactor utilities folder and admin mode
1 parent d337f7c commit bd2c40c

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

main.py

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ def admin_mode():
2020
if admin_mode == 0:
2121
break
2222
handle_admin_actions(admin_mode, admin)
23+
else:
24+
print("\nAccess denied.")
2325

2426
def handle_admin_actions(admin_mode, admin):
2527
if admin_mode == 1: # Add new products

services/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131

3232
menu = Menu()
3333
database = Database()
34-
ADMIN_PASSWORD = int(open("config/password.txt", "r").read())
34+
ADMIN_PASSWORD = int(open("utilities/password.txt", "r").read())
File renamed without changes.

0 commit comments

Comments
 (0)