Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vladsavelyev committed Feb 19, 2024
1 parent 9f50327 commit 3adfade
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions megaqc/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ def handle_report_data(user, report_data):
for dst_idx, dataset in enumerate(
report_data["report_plot_data"][plot]["datasets"]
):
# MultiQC 1.20 stores "categories" per-dataset, so need to re-add it into
# the main pconfig for MegaQC:
config = copy.deepcopy(report_data["report_plot_data"][plot]["config"])
dls = None
dataset_name = None
Expand Down Expand Up @@ -295,6 +297,7 @@ def handle_report_data(user, report_data):
new_dataset_row.save()
new_plotdata_cnt += 1
continue

# Legacy MultiQC < 1.20:
for sub_dict in dataset:
data_key = str(sub_dict["name"])
Expand Down

0 comments on commit 3adfade

Please sign in to comment.