From 9519c80241167db071e44cbdd1e1843daad6e305 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sat, 13 Jun 2020 13:56:34 +0200 Subject: [PATCH] Remove old ugly hacks from pre-history --- lib/ND | 2 +- scripts/fetchdumps.pl | 2 -- scripts/scans.pl | 1 - scripts/stats.pl | 2 -- 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/ND b/lib/ND index f2a8fe8..1c26c58 160000 --- a/lib/ND +++ b/lib/ND @@ -1 +1 @@ -Subproject commit f2a8fe893c12b768d32f0ddfd5f975ee2db6799d +Subproject commit 1c26c582d691615ce061bf1327225733619740ab diff --git a/scripts/fetchdumps.pl b/scripts/fetchdumps.pl index 71c0c2b..4a7ae1b 100755 --- a/scripts/fetchdumps.pl +++ b/scripts/fetchdumps.pl @@ -36,8 +36,6 @@ use ND::DB; our $dbh = ND::DB::DB(); -$dbh->do("SET CLIENT_ENCODING TO 'LATIN1';"); - my $insert = $dbh->prepare("INSERT INTO dumps(tick,type,modified,dump) VALUES(?,?,?,?)"); my $select = $dbh->prepare("SELECT 1 FROM dumps WHERE type = ? AND modified = ?"); my $updated = 0; diff --git a/scripts/scans.pl b/scripts/scans.pl index 40957a7..e44dc08 100755 --- a/scripts/scans.pl +++ b/scripts/scans.pl @@ -41,7 +41,6 @@ our $dbh = ND::DB::DB(); #my $test = $dbh->prepare(q{INSERT INTO scans (tick,scan_id) VALUES(1,3) RETURNING id}); #print ; -$dbh->do(q{SET CLIENT_ENCODING TO 'LATIN1';}); my $scangroups = $dbh->prepare(q{SELECT id,scan_id,tick,uid FROM scans WHERE groupscan AND NOT parsed FOR UPDATE diff --git a/scripts/stats.pl b/scripts/stats.pl index 432a510..fb30c24 100755 --- a/scripts/stats.pl +++ b/scripts/stats.pl @@ -35,8 +35,6 @@ use ND::DB; our $dbh = ND::DB::DB(); -$dbh->do("SET CLIENT_ENCODING TO 'LATIN1';"); - my %classes = (Fighter => 'Fi', Corvette => 'Co', Frigate => 'Fr', Destroyer => 'De', Cruiser => 'Cr', Battleship => 'Bs'); my $file = get("http://game.planetarion.com/manual.pl?page=stats"); -- 2.39.2