Skip to content

Commit

Permalink
Fix: Check for common_connection
Browse files Browse the repository at this point in the history
Signed-off-by: Aryan Rajoria <[email protected]>
  • Loading branch information
aryan-rajoria authored Nov 7, 2024
1 parent eaa46a5 commit cdb753c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blint_db/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ def arguments_parser():
return parser.parse_args()

def reset_and_backup():
if os.path.exists(BLINTDB_LOCATION) and os.path.isfile(BLINTDB_LOCATION):
os.remove(BLINTDB_LOCATION)
if COMMON_CONNECTION:
if os.path.exists(BLINTDB_LOCATION) and os.path.isfile(BLINTDB_LOCATION):
os.remove(BLINTDB_LOCATION)
COMMON_CONNECTION.execute(f"vacuum main into '{BLINTDB_LOCATION}'")


Expand Down

0 comments on commit cdb753c

Please sign in to comment.