Merge pull request #149 from ZeusWPI/Jan-PieterBaert-patch-1
Remove the long extra confirmation
This commit is contained in:
commit
7f3b5f9f3a
1 changed files with 1 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue