Mercurial > repos > fabio > gdcwebapp
comparison json_data_source_mod.py @ 20:8c0633c02758 draft
Uploaded 20170602
author | fabio |
---|---|
date | Fri, 02 Jun 2017 17:49:36 -0400 |
parents | 2c58e3cc1b30 |
children |
comparison
equal
deleted
inserted
replaced
19:5244d3a1a441 | 20:8c0633c02758 |
---|---|
224 | 224 |
225 # get JSON response from data source | 225 # get JSON response from data source |
226 # TODO: make sure response is not enormous | 226 # TODO: make sure response is not enormous |
227 query_params = json.loads(urllib.urlopen( dataset_url ).read()) | 227 query_params = json.loads(urllib.urlopen( dataset_url ).read()) |
228 # download and write files | 228 # download and write files |
229 #primary = False | 229 primary = False |
230 primary = True | 230 #primary = True |
231 # query_item, hda_id, output_base_path, dataset_id | 231 # query_item, hda_id, output_base_path, dataset_id |
232 for query_item in query_params: | 232 for query_item in query_params: |
233 if isinstance( query_item, list ): | 233 if isinstance( query_item, list ): |
234 # TODO: do something with the nested list as a collection | 234 # TODO: do something with the nested list as a collection |
235 for query_subitem in query_item: | 235 for query_subitem in query_item: |