From af6fd0a84fb97658a20c3ea8d219b49fd6fecb8c Mon Sep 17 00:00:00 2001 From: Giang Bui Date: Fri, 23 Mar 2018 02:14:46 -0500 Subject: [PATCH] fix(bagit): fix bagit response --- peregrine/resources/submission/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/peregrine/resources/submission/__init__.py b/peregrine/resources/submission/__init__.py index 4fa08446..ec70ac04 100644 --- a/peregrine/resources/submission/__init__.py +++ b/peregrine/resources/submission/__init__.py @@ -79,7 +79,7 @@ def root_graphql_query(): # Short circuit if user is not recognized. Make sure that the list of # projects that the user has read access to is set. - print("root_graphql_query. Run a graphql query in resource/submission/__init__") + print("=====root_graphql_query. Run a graphql query in resource/submission/__init__=====") try: set_read_access_projects() except peregrine.errors.AuthError: @@ -100,6 +100,8 @@ def root_graphql_query(): if code == 200: # if peregrine.utils.contain_node_with_category(data.json,'data_file') == False: # return flask.jsonify({ 'errors': 'No data_file node'}), 400 + print("========dir(data)===========") + print(dir(data)) res = peregrine.utils.json2tbl(data.json,'', "_" ) bag_info = {'organization': 'CDIS', 'data_type': 'TOPMed',