File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments