summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-25 18:11:48 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-25 18:11:48 +0100
commite2b78170a5b4fba9a6ac9430140320a515739634 (patch)
tree678bb4605ae98c51544d616d7796cd67933a5e26 /lib/Travelynx.pm
parent62929a570a0f96af598807d37294d03b9f8b9456 (diff)
Postgres does not require decode() calls
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-xlib/Travelynx.pm9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 369dfce..039ab6e 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -910,10 +910,6 @@ qq{select * from pending_mails where email = ? and num_tries > 1;}
$raw_real_ts, $raw_route, $raw_messages
) = @row;
- $name = decode( 'UTF-8', $name );
- $raw_route = decode( 'UTF-8', $raw_route );
- $raw_messages = decode( 'UTF-8', $raw_messages );
-
if (
$action == $match_actions[0]
or
@@ -1034,9 +1030,8 @@ qq{select * from pending_mails where email = ? and num_tries > 1;}
my $action_ts = epoch_to_dt( $cols[1] );
my $sched_ts = epoch_to_dt( $cols[8] );
my $real_ts = epoch_to_dt( $cols[9] );
- my $checkin_station_name = decode( 'UTF-8', $cols[3] );
- my @route
- = split( qr{[|]}, decode( 'UTF-8', $cols[10] // q{} ) );
+ my $checkin_station_name = $cols[3];
+ my @route = split( qr{[|]}, $cols[10] // q{} );
my @route_after;
my $is_after = 0;
for my $station (@route) {