From d883a869f318cdc71a72f78f7f5a842016add880 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 13 Aug 2024 23:04:21 +0200 Subject: carriage formation: sort dict keys so that caching actually works --- lib/DBInfoscreen/Helper/Wagonorder.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/DBInfoscreen/Helper') diff --git a/lib/DBInfoscreen/Helper/Wagonorder.pm b/lib/DBInfoscreen/Helper/Wagonorder.pm index c736816..9981244 100644 --- a/lib/DBInfoscreen/Helper/Wagonorder.pm +++ b/lib/DBInfoscreen/Helper/Wagonorder.pm @@ -48,7 +48,7 @@ sub get_p { my $url = sprintf( '%s?%s', 'https://www.bahn.de/web/api/reisebegleitung/wagenreihung/vehicle-sequence', - join( '&', map { $_ . '=' . $param{$_} } keys %param ) ); + join( '&', map { $_ . '=' . $param{$_} } sort keys %param ) ); my $promise = Mojo::Promise->new; -- cgit v1.2.3