summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-02-02 18:16:52 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-02-02 18:16:52 +0100
commitb52687b08e365610a213de348fbb94a01fcbcd68 (patch)
treeec2531a1aa1a1680355b408ee48f7a4d93cc9120 /lib
parent67c4ab8bdffeae89e5f96e3f1cf35f565c02fad7 (diff)
Switch to a more performant wagon order backend3.10.4
Diffstat (limited to 'lib')
-rw-r--r--lib/DBInfoscreen/Helper/Wagonorder.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/DBInfoscreen/Helper/Wagonorder.pm b/lib/DBInfoscreen/Helper/Wagonorder.pm
index defc4df..9e0612e 100644
--- a/lib/DBInfoscreen/Helper/Wagonorder.pm
+++ b/lib/DBInfoscreen/Helper/Wagonorder.pm
@@ -106,6 +106,7 @@ sub has_cycle_p {
sub check_wagonorder_p {
my ( $self, $train_no, $wr_link ) = @_;
+ return Mojo::Promise->new->resolve;
return $self->head_dbdb_p(
"https://lib.finalrewind.org/dbdb/has_wagonorder/${train_no}/${wr_link}"
@@ -116,7 +117,7 @@ sub get_p {
my ( $self, $train_no, $api_ts ) = @_;
my $url
- = "https://www.apps-bahn.de/wr/wagenreihung/1.0/${train_no}/${api_ts}";
+ = "https://ist-wr.noncd.db.de/wagenreihung/1.0/${train_no}/${api_ts}";
my $cache = $self->{realtime_cache};