diff options
author | Frederick Muriuki Muriithi | 2023-06-02 14:13:29 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-06-02 14:16:11 +0300 |
commit | f0763bc2e0b65796d28b737f72f97c53602e1468 (patch) | |
tree | fa2636f753f5063c1f1496dcd500bf5cd2a4b845 /scripts/migrate_existing_data.py | |
parent | 78d641b1490b8b0d2b4a5437d6af90742f3011f8 (diff) | |
download | genenetwork3-f0763bc2e0b65796d28b737f72f97c53602e1468.tar.gz |
Auth: Bug: Display all admins before taking choice
Diffstat (limited to 'scripts/migrate_existing_data.py')
-rw-r--r-- | scripts/migrate_existing_data.py | 4 |
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!") |