aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-06-02 14:13:29 +0300
committerFrederick Muriuki Muriithi2023-06-02 14:16:11 +0300
commitf0763bc2e0b65796d28b737f72f97c53602e1468 (patch)
treefa2636f753f5063c1f1496dcd500bf5cd2a4b845 /scripts
parent78d641b1490b8b0d2b4a5437d6af90742f3011f8 (diff)
downloadgenenetwork3-f0763bc2e0b65796d28b737f72f97c53602e1468.tar.gz
Auth: Bug: Display all admins before taking choice
Diffstat (limited to 'scripts')
-rw-r--r--scripts/migrate_existing_data.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/migrate_existing_data.py b/scripts/migrate_existing_data.py
index 5097488..0741940 100644
--- a/scripts/migrate_existing_data.py
+++ b/scripts/migrate_existing_data.py
@@ -41,8 +41,8 @@ def choose_admin(enum_admins: dict[int, User]) -> int:
print("We found the following system administrators:")
for idx, admin in enum_admins.items():
print(f"\t{idx}: {admin.name} ({admin.email})")
- choice = input(f"Choose [1 .. {len(enum_admins)}]: ")
- return int(choice)
+ choice = input(f"Choose [1 .. {len(enum_admins)}]: ")
+ return int(choice)
except ValueError as _verr:
if choice.lower() == "quit":
print("Goodbye!")