Skip to content

Commit

Permalink
fix(bagit): fix bagit response
Browse files Browse the repository at this point in the history
  • Loading branch information
giangbui committed Mar 23, 2018
1 parent 0d6a577 commit af6fd0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion peregrine/resources/submission/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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',
Expand Down

0 comments on commit af6fd0a

Please sign in to comment.