From b837ec8b5b4fa560b7d5fe0bdc2f6dd9f2e5915e Mon Sep 17 00:00:00 2001 From: Jan-Pieter Baert <32643670+Jan-PieterBaert@users.noreply.github.com> Date: Tue, 22 Oct 2019 14:10:56 +0200 Subject: [PATCH] Remove the long extra confirmation If people fuck it up it would be on their local system, only the sysadmin can fuck up the real haldis --- app/database/create_database.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/database/create_database.py b/app/database/create_database.py index a0a1f15..74c0a48 100644 --- a/app/database/create_database.py +++ b/app/database/create_database.py @@ -38,8 +38,7 @@ def add_all() -> None: def recreate_from_scratch() -> None: confirmation = "Are you very very sure? (Will delete previous entries!) (y/N) " - check = "I acknowledge any repercussions!" - if input(confirmation).lower() in yes and input("Type: '{}' ".format(check)).lower() == check: + if input(confirmation) in yes: print("Resetting the database!") db.drop_all() db.create_all()