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:
|
def recreate_from_scratch() -> None:
|
||||||
confirmation = "Are you very very sure? (Will delete previous entries!) (y/N) "
|
confirmation = "Are you very very sure? (Will delete previous entries!) (y/N) "
|
||||||
check = "I acknowledge any repercussions!"
|
if input(confirmation) in yes:
|
||||||
if input(confirmation).lower() in yes and input("Type: '{}' ".format(check)).lower() == check:
|
|
||||||
print("Resetting the database!")
|
print("Resetting the database!")
|
||||||
db.drop_all()
|
db.drop_all()
|
||||||
db.create_all()
|
db.create_all()
|
||||||
|
|
Loading…
Reference in a new issue