# HG changeset patch # User Andre Heinecke # Date 1375092891 -7200 # Node ID 0b0325d1ab7f4f01bf09e70a831af948e9aaebad # Parent e568788f519dc28773345c96fce66182116494b1 issue1391: Fix syntax in gauge macros and add km filtering diff -r e568788f519d -r 0b0325d1ab7f artifacts/doc/conf/meta-data.xml --- a/artifacts/doc/conf/meta-data.xml Mon Jul 29 11:56:03 2013 +0200 +++ b/artifacts/doc/conf/meta-data.xml Mon Jul 29 12:14:51 2013 +0200 @@ -1284,22 +1284,21 @@ - SELECT id AS gauge_id, - name AS gauge_name - FROM gauges WHERE river_id = ${river_id} + SELECT g.id AS gauge_id, + g.name AS gauge_name + FROM gauges g + LEFT JOIN ranges r ON g.range_id = r.id + WHERE g.river_id = ${river_id} + AND NOT((${tokm} < r.a) or (${fromkm} > r.b)) - - - - - - - + + + + +