summaryrefslogtreecommitdiff
path: root/check/commands/phash/drop.py
diff options
context:
space:
mode:
Diffstat (limited to 'check/commands/phash/drop.py')
-rw-r--r--check/commands/phash/drop.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/check/commands/phash/drop.py b/check/commands/phash/drop.py
index 40a8261..aee922d 100644
--- a/check/commands/phash/drop.py
+++ b/check/commands/phash/drop.py
@@ -15,8 +15,8 @@ def cli(ctx, opt_force):
"""
Drop the database
"""
- if opt_force:
+ if not opt_force:
+ print('Will foolishly drop the database only if the --force flag is passed')
+ else:
print('Dropping the database...!')
Base.metadata.drop_all(engine)
- else:
- print('Will foolishly drop the database if the --force flag is passed') \ No newline at end of file