diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-03-25 18:11:48 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-03-25 18:11:48 +0100 |
commit | e2b78170a5b4fba9a6ac9430140320a515739634 (patch) | |
tree | 678bb4605ae98c51544d616d7796cd67933a5e26 /lib | |
parent | 62929a570a0f96af598807d37294d03b9f8b9456 (diff) |
Postgres does not require decode() calls
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Travelynx.pm | 9 | ||||
-rw-r--r-- | lib/Travelynx/Controller/Account.pm | 3 |
2 files changed, 2 insertions, 10 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) { diff --git a/lib/Travelynx/Controller/Account.pm b/lib/Travelynx/Controller/Account.pm index 8b59bb5..eaff06a 100644 --- a/lib/Travelynx/Controller/Account.pm +++ b/lib/Travelynx/Controller/Account.pm @@ -249,9 +249,6 @@ sub json_export { $raw_sched_ts, $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 ); push( @entries, { |