File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
phylesystem_api/phylesystem_api/views Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -279,8 +279,8 @@ def trees_in_synth(request):
279279
280280@view_config (route_name = "include_tree_in_synth" , renderer = "json" )
281281def include_tree_in_synth (request ):
282- study_id = request .params .get ("study_id" , "" ).strip ()
283- tree_id = request .params .get ("tree_id" , "" ).strip ()
282+ study_id = request .json .get ("study_id" , "" ).strip ()
283+ tree_id = request .json .get ("tree_id" , "" ).strip ()
284284 # check for empty/missing ids
285285 if (study_id == "" ) or (tree_id == "" ):
286286 raise HTTPBadRequest (
@@ -386,8 +386,8 @@ def include_tree_in_synth(request):
386386
387387@view_config (route_name = "exclude_tree_from_synth" , renderer = "json" )
388388def exclude_tree_from_synth (request ):
389- study_id = request .params .get ("study_id" , "" ).strip ()
390- tree_id = request .params .get ("tree_id" , "" ).strip ()
389+ study_id = request .json .get ("study_id" , "" ).strip ()
390+ tree_id = request .json .get ("tree_id" , "" ).strip ()
391391 # check for empty/missing ids
392392 if (study_id == "" ) or (tree_id == "" ):
393393 raise HTTPBadRequest (
You can’t perform that action at this time.
0 commit comments