Skip to content

Commit bcbef25

Browse files
committed
fix: don't check computed for IMG
1 parent 6b0bf44 commit bcbef25

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

wort/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def view(public_db=None, dataset_id=None):
9696
# Not in cache, let's check DB
9797
dataset = Dataset.query.filter_by(id=dataset_id).first()
9898

99-
if dataset is not None and dataset.computed:
99+
if dataset is not None and (dataset.computed or public_db == "img"):
100100
# Found a hit in DB
101101
dataset_info = {}
102102
dataset_info["name"] = dataset_id.upper()

wort/blueprints/compute/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def compute_genomes(accession, path, name):
137137

138138
# if file is empty, consider it an error and sift
139139
# through logs later to figure out better error control
140-
if os.stat(f).st_size == 0:
140+
if os.stat(f.name).st_size == 0:
141141
raise WorkerRunError(result.stdout)
142142

143143
f.seek(0)

0 commit comments

Comments
 (0)