RKuttruff commented on code in PR #220: URL: https://github.com/apache/incubator-sdap-nexus/pull/220#discussion_r1040163330
########## analysis/webservice/algorithms/doms/subsetter.py: ########## @@ -309,16 +300,21 @@ def toCsv(self): ] data_variables = list(set([keys for result in results for keys in result['data'].keys()])) data_variables.sort() + + if 'id' in list(set([keys for result in results for keys in result.keys()])): + headers.append('id') + headers.extend(data_variables) for i, result in enumerate(results): cols = [] cols.append(result['longitude']) cols.append(result['latitude']) cols.append(datetime.utcfromtimestamp(result['time']).strftime('%Y-%m-%dT%H:%M:%SZ')) + cols.append(result.get('id')) Review Comment: Gotcha 👍 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@sdap.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org