summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Command
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-10-01 10:30:24 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-10-01 10:30:24 +0200
commit4a2897c1f812d3deb3b799b8c10b67dd2d1f11f6 (patch)
treeebbe4f82f0b052093b73035019a66455575eadc1 /lib/Travelynx/Command
parentaaeb81a5d230ca556fa950d0f9be0b98e85effcf (diff)
influxdb: add meta / related_stations count
Diffstat (limited to 'lib/Travelynx/Command')
-rw-r--r--lib/Travelynx/Command/influxdb.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Travelynx/Command/influxdb.pm b/lib/Travelynx/Command/influxdb.pm
index 1ad0d6c..f3fc3de 100644
--- a/lib/Travelynx/Command/influxdb.pm
+++ b/lib/Travelynx/Command/influxdb.pm
@@ -121,6 +121,14 @@ sub run {
->hash->{count}
)
);
+ push(
+ @stations,
+ query_to_influx(
+ 'meta',
+ $db->select( 'related_stations', 'count(*) as count' )
+ ->hash->{count}
+ )
+ );
push(
@traewelling,