Skip to content

Commit

Permalink
Fix result causing error and remove debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
pagrubel committed Dec 12, 2024
1 parent 38e2645 commit 45b5345
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions beeflow/common/db/bdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def table_exists(db_file, table_name):
"""Return true if a table exists and false if not."""
stmt = f"SELECT name FROM sqlite_master WHERE type='table' AND name='{table_name}';"
result = getall(db_file, stmt)
if result is None: result == ""
return len(result) != 0


Expand Down
3 changes: 0 additions & 3 deletions beeflow/common/deps/redis_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ def start(log):
os.makedirs(os.path.join(paths.redis_root(), data_dir), exist_ok=True)
conf_name = 'redis.conf'
container_path = paths.redis_container()
print(f"container_path is {container_path}")
# Dump the config
conf_path = os.path.join(paths.redis_root(), conf_name)
if not os.path.exists(conf_path):
Expand All @@ -34,8 +33,6 @@ def start(log):
# from Redis, so setting LANG=C. This could have consequences for UTF-8
# strings.
env = dict(os.environ)
print(f"env is {env}")
env['LANG'] = 'C'
env['LC_ALL'] = 'C'
print(f"env is {env}")
return subprocess.Popen(cmd, env=env, stdout=log, stderr=log)

0 comments on commit 45b5345

Please sign in to comment.