Skip to content

Commit

Permalink
Fix returned value if db doesn't exit
Browse files Browse the repository at this point in the history
  • Loading branch information
pagrubel committed Dec 12, 2024
1 parent 6737c88 commit 5884d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beeflow/common/db/bdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def table_exists(db_file, table_name):
stmt = f"SELECT name FROM sqlite_master WHERE type='table' AND name='{table_name}';"
result = getall(db_file, stmt)
if result is None:
result == ""
result = ""
return len(result) != 0


Expand Down

0 comments on commit 5884d34

Please sign in to comment.