diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-04-27 19:20:39 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-04-27 19:20:39 +0200 |
| commit | c59a52dacd1259fadb545c852883412e61f74c84 (patch) | |
| tree | e032cbd200c9041c2470197e008ae8d3b56932fb /check/commands/phash/drop.py | |
| parent | 1db97e03f5cac4eb6421e0b55628a3187c41e29c (diff) | |
import script
Diffstat (limited to 'check/commands/phash/drop.py')
| -rw-r--r-- | check/commands/phash/drop.py | 6 |
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 |
