From 0457a53f657d887e5644331b3cca1f56fde5d371 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 4 Feb 2020 21:23:22 +0100 Subject: maintenance: only fetch polylines from journeys which were not edited --- lib/Travelynx/Command/maintenance.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Travelynx/Command') diff --git a/lib/Travelynx/Command/maintenance.pm b/lib/Travelynx/Command/maintenance.pm index a70d42a..32a6231 100644 --- a/lib/Travelynx/Command/maintenance.pm +++ b/lib/Travelynx/Command/maintenance.pm @@ -148,7 +148,8 @@ sub run { [ 'id', 'polyline_id' ], { route => $journey->{route}, - polyline_id => { '!=', undef } + polyline_id => { '!=', undef }, + edited => 0, }, { limit => 1 } )->hash; -- cgit v1.2.3