Skip to content

Commit 42e5520

Browse files
committed
fixed: Count DF was being validated even without count data for score set updates
1 parent 3963cf9 commit 42e5520

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/mavedb/routers/score_sets.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -854,9 +854,13 @@ async def update_score_set(
854854
scores_data = pd.DataFrame(
855855
variants_to_csv_rows(item.variants, columns=score_columns, dtype="score_data")
856856
).replace("NA", pd.NA)
857-
count_data = pd.DataFrame(
858-
variants_to_csv_rows(item.variants, columns=count_columns, dtype="count_data")
859-
).replace("NA", pd.NA)
857+
858+
if item.dataset_columns["count_columns"]:
859+
count_data = pd.DataFrame(
860+
variants_to_csv_rows(item.variants, columns=count_columns, dtype="count_data")
861+
).replace("NA", pd.NA)
862+
else:
863+
count_data = None
860864

861865
# Although this is also updated within the variant creation job, update it here
862866
# as well so that we can display the proper UI components (queue invocation delay

0 commit comments

Comments
 (0)