From c9a57776e8f51804b198fa30c5b045811d5e2e16 Mon Sep 17 00:00:00 2001 From: Antonio Gonzalez Date: Fri, 26 Jan 2024 15:52:06 -0700 Subject: [PATCH] prep_info --- qiita_pet/handlers/api_proxy/studies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiita_pet/handlers/api_proxy/studies.py b/qiita_pet/handlers/api_proxy/studies.py index 177576bdb..b4717d73f 100644 --- a/qiita_pet/handlers/api_proxy/studies.py +++ b/qiita_pet/handlers/api_proxy/studies.py @@ -203,7 +203,7 @@ def study_prep_get_req(study_id, user_id): return access_error # Can only pass ids over API, so need to instantiate object study = Study(int(study_id)) - prep_info = defaultdict(list) + prep_info = {dtype: [] for dtype in study.data_types} editable = study.can_edit(User(user_id)) for prep in study.prep_templates(): status = prep.status