]> ruin.nu Git - ndwebbie.git/commitdiff
Remove old ugly hacks from pre-history
authorMichael Andreen <harv@ruin.nu>
Sat, 13 Jun 2020 11:56:34 +0000 (13:56 +0200)
committerMichael Andreen <harv@ruin.nu>
Sat, 13 Jun 2020 11:56:34 +0000 (13:56 +0200)
lib/ND
scripts/fetchdumps.pl
scripts/scans.pl
scripts/stats.pl

diff --git a/lib/ND b/lib/ND
index f2a8fe893c12b768d32f0ddfd5f975ee2db6799d..1c26c582d691615ce061bf1327225733619740ab 160000 (submodule)
--- a/lib/ND
+++ b/lib/ND
@@ -1 +1 @@
-Subproject commit f2a8fe893c12b768d32f0ddfd5f975ee2db6799d
+Subproject commit 1c26c582d691615ce061bf1327225733619740ab
index 71c0c2b88c350c5eae4f48c88e309e885383d610..4a7ae1b6b774dd5b6226614b812a63dc0cad5bbb 100755 (executable)
@@ -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;
index 40957a77f7eb8555d342854680f4920b8b96568e..e44dc081f53c70076377f924b03457e2dd9e786b 100755 (executable)
@@ -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
index 432a5105b3761105f4bfe26272101e5f9b050079..fb30c24717ed622bf6897f419c263c6f101fb3e4 100755 (executable)
@@ -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");