Commit 90feb9fb authored by Porter Libby's avatar Porter Libby
Browse files

still no

parent 6c95cf28
......@@ -145,7 +145,7 @@ const getReadings = (request, response) => {
}
const getStreamingsHosts = (request, response) => {
var query = 'SELECT DISTINCT hostid, '
+ "(SELECT COUNT(*) FROM fieldday_streaming WHERE tripid="+ (request.query.tripid) + ' and siteid=' + (request.query.siteid) + ' and sectorid=' + (request.query.sectorid) + " AND hostid=fieldday_streaming.hostid) AS s_count, "
+ "(SELECT COUNT(*) FROM fieldday_streaming WHERE tripid="+ (request.query.tripid) + ' and siteid=' + (request.query.siteid) + ' and sectorid=' + (request.query.sectorid) + " AND hostid=fieldday_host_temp.hostid) AS s_count, "
+'(SELECT DISTINCT hostname FROM fieldday_host_temp where hostid=fieldday_streaming.hostid)'
+' FROM fieldday_streaming where tripid='+ (request.query.tripid)
+' and siteid='+ (request.query.siteid)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment