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
This commit is contained in:
Jan-Pieter Baert 2019-10-22 14:10:56 +02:00 committed by GitHub
parent 0daea7d270
commit b837ec8b5b
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()