Merge pull request #149 from ZeusWPI/Jan-PieterBaert-patch-1

Remove the long extra confirmation
This commit is contained in:
redfast00 2019-10-22 16:13:47 +04:00 committed by GitHub
commit 7f3b5f9f3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()