Skip to content
Permalink
Browse files

typo in karid/compress.pl meant that not all Karnataka ACs got a PC a…

…ssigned - fixed
  • Loading branch information...
raphael-susewind committed Jun 4, 2018
1 parent dd6db28 commit 3d5d102815a94bc378f561ea77612e1c16a4be29
Showing with 10,686 additions and 10,476 deletions.
  1. +1 −1 karid/compress.pl
  2. +210 −0 karid/karid-b.sql
  3. +10,475 −10,475 karid/karid.csv
@@ -28,7 +28,7 @@
$dbh = DBI->connect("DBI:SQLite:dbname=:memory:", "","", {sqlite_unicode=>1});
$dbh->sqlite_backup_from_file('actopc.sqlite');

for ($ac=1;$ac<=182;$ac++) {
for ($ac=1;$ac<=224;$ac++) {
my $ref = $dbh->selectcol_arrayref("SELECT ac_name FROM actopc WHERE ac = ?",undef,$ac);
print FILE "UPDATE karid SET ac_name_14 = '".@$ref[0]."' WHERE ac_id_09 = $ac;\n";
my $ref = $dbh->selectcol_arrayref("SELECT ac_reserved FROM actopc WHERE ac = ?",undef,$ac);
@@ -914,6 +914,216 @@ UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 182;
UPDATE karid SET pc_id_09 = 23 WHERE ac_id_09 = 182;
UPDATE karid SET pc_name_09 = 'Bangalore Rural' WHERE ac_id_09 = 182;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 182;
UPDATE karid SET ac_name_14 = 'Ramanagaram' WHERE ac_id_09 = 183;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 183;
UPDATE karid SET pc_id_09 = 23 WHERE ac_id_09 = 183;
UPDATE karid SET pc_name_09 = 'Bangalore Rural' WHERE ac_id_09 = 183;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 183;
UPDATE karid SET ac_name_14 = 'Kanakapura' WHERE ac_id_09 = 184;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 184;
UPDATE karid SET pc_id_09 = 23 WHERE ac_id_09 = 184;
UPDATE karid SET pc_name_09 = 'Bangalore Rural' WHERE ac_id_09 = 184;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 184;
UPDATE karid SET ac_name_14 = 'Channapatna' WHERE ac_id_09 = 185;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 185;
UPDATE karid SET pc_id_09 = 23 WHERE ac_id_09 = 185;
UPDATE karid SET pc_name_09 = 'Bangalore Rural' WHERE ac_id_09 = 185;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 185;
UPDATE karid SET ac_name_14 = 'Malavalli' WHERE ac_id_09 = 186;
UPDATE karid SET ac_reserved_14 = 'SC' WHERE ac_id_09 = 186;
UPDATE karid SET pc_id_09 = 20 WHERE ac_id_09 = 186;
UPDATE karid SET pc_name_09 = 'Mandya' WHERE ac_id_09 = 186;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 186;
UPDATE karid SET ac_name_14 = 'Maddur' WHERE ac_id_09 = 187;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 187;
UPDATE karid SET pc_id_09 = 20 WHERE ac_id_09 = 187;
UPDATE karid SET pc_name_09 = 'Mandya' WHERE ac_id_09 = 187;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 187;
UPDATE karid SET ac_name_14 = 'Melukote' WHERE ac_id_09 = 188;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 188;
UPDATE karid SET pc_id_09 = 20 WHERE ac_id_09 = 188;
UPDATE karid SET pc_name_09 = 'Mandya' WHERE ac_id_09 = 188;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 188;
UPDATE karid SET ac_name_14 = 'Mandya' WHERE ac_id_09 = 189;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 189;
UPDATE karid SET pc_id_09 = 20 WHERE ac_id_09 = 189;
UPDATE karid SET pc_name_09 = 'Mandya' WHERE ac_id_09 = 189;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 189;
UPDATE karid SET ac_name_14 = 'Shrirangapattana' WHERE ac_id_09 = 190;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 190;
UPDATE karid SET pc_id_09 = 20 WHERE ac_id_09 = 190;
UPDATE karid SET pc_name_09 = 'Mandya' WHERE ac_id_09 = 190;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 190;
UPDATE karid SET ac_name_14 = 'Nagamangala' WHERE ac_id_09 = 191;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 191;
UPDATE karid SET pc_id_09 = 20 WHERE ac_id_09 = 191;
UPDATE karid SET pc_name_09 = 'Mandya' WHERE ac_id_09 = 191;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 191;
UPDATE karid SET ac_name_14 = 'Krishnarajpet' WHERE ac_id_09 = 192;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 192;
UPDATE karid SET pc_id_09 = 20 WHERE ac_id_09 = 192;
UPDATE karid SET pc_name_09 = 'Mandya' WHERE ac_id_09 = 192;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 192;
UPDATE karid SET ac_name_14 = 'Shravanabelagola' WHERE ac_id_09 = 193;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 193;
UPDATE karid SET pc_id_09 = 16 WHERE ac_id_09 = 193;
UPDATE karid SET pc_name_09 = 'Hassan' WHERE ac_id_09 = 193;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 193;
UPDATE karid SET ac_name_14 = 'Arsikere' WHERE ac_id_09 = 194;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 194;
UPDATE karid SET pc_id_09 = 16 WHERE ac_id_09 = 194;
UPDATE karid SET pc_name_09 = 'Hassan' WHERE ac_id_09 = 194;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 194;
UPDATE karid SET ac_name_14 = 'Belur' WHERE ac_id_09 = 195;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 195;
UPDATE karid SET pc_id_09 = 16 WHERE ac_id_09 = 195;
UPDATE karid SET pc_name_09 = 'Hassan' WHERE ac_id_09 = 195;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 195;
UPDATE karid SET ac_name_14 = 'Hassan' WHERE ac_id_09 = 196;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 196;
UPDATE karid SET pc_id_09 = 16 WHERE ac_id_09 = 196;
UPDATE karid SET pc_name_09 = 'Hassan' WHERE ac_id_09 = 196;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 196;
UPDATE karid SET ac_name_14 = 'Holenarasipur' WHERE ac_id_09 = 197;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 197;
UPDATE karid SET pc_id_09 = 16 WHERE ac_id_09 = 197;
UPDATE karid SET pc_name_09 = 'Hassan' WHERE ac_id_09 = 197;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 197;
UPDATE karid SET ac_name_14 = 'Arkalgud' WHERE ac_id_09 = 198;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 198;
UPDATE karid SET pc_id_09 = 16 WHERE ac_id_09 = 198;
UPDATE karid SET pc_name_09 = 'Hassan' WHERE ac_id_09 = 198;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 198;
UPDATE karid SET ac_name_14 = 'Sakleshpur' WHERE ac_id_09 = 199;
UPDATE karid SET ac_reserved_14 = 'SC' WHERE ac_id_09 = 199;
UPDATE karid SET pc_id_09 = 16 WHERE ac_id_09 = 199;
UPDATE karid SET pc_name_09 = 'Hassan' WHERE ac_id_09 = 199;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 199;
UPDATE karid SET ac_name_14 = 'Belthangady' WHERE ac_id_09 = 200;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 200;
UPDATE karid SET pc_id_09 = 17 WHERE ac_id_09 = 200;
UPDATE karid SET pc_name_09 = 'Dakshina Kannada' WHERE ac_id_09 = 200;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 200;
UPDATE karid SET ac_name_14 = 'Moodabidri' WHERE ac_id_09 = 201;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 201;
UPDATE karid SET pc_id_09 = 17 WHERE ac_id_09 = 201;
UPDATE karid SET pc_name_09 = 'Dakshina Kannada' WHERE ac_id_09 = 201;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 201;
UPDATE karid SET ac_name_14 = 'Mangalore City North' WHERE ac_id_09 = 202;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 202;
UPDATE karid SET pc_id_09 = 17 WHERE ac_id_09 = 202;
UPDATE karid SET pc_name_09 = 'Dakshina Kannada' WHERE ac_id_09 = 202;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 202;
UPDATE karid SET ac_name_14 = 'Mangalore City South' WHERE ac_id_09 = 203;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 203;
UPDATE karid SET pc_id_09 = 17 WHERE ac_id_09 = 203;
UPDATE karid SET pc_name_09 = 'Dakshina Kannada' WHERE ac_id_09 = 203;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 203;
UPDATE karid SET ac_name_14 = 'Mangalore' WHERE ac_id_09 = 204;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 204;
UPDATE karid SET pc_id_09 = 17 WHERE ac_id_09 = 204;
UPDATE karid SET pc_name_09 = 'Dakshina Kannada' WHERE ac_id_09 = 204;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 204;
UPDATE karid SET ac_name_14 = 'Bantval' WHERE ac_id_09 = 205;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 205;
UPDATE karid SET pc_id_09 = 17 WHERE ac_id_09 = 205;
UPDATE karid SET pc_name_09 = 'Dakshina Kannada' WHERE ac_id_09 = 205;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 205;
UPDATE karid SET ac_name_14 = 'Puttur' WHERE ac_id_09 = 206;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 206;
UPDATE karid SET pc_id_09 = 17 WHERE ac_id_09 = 206;
UPDATE karid SET pc_name_09 = 'Dakshina Kannada' WHERE ac_id_09 = 206;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 206;
UPDATE karid SET ac_name_14 = 'Sullia' WHERE ac_id_09 = 207;
UPDATE karid SET ac_reserved_14 = 'SC' WHERE ac_id_09 = 207;
UPDATE karid SET pc_id_09 = 17 WHERE ac_id_09 = 207;
UPDATE karid SET pc_name_09 = 'Dakshina Kannada' WHERE ac_id_09 = 207;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 207;
UPDATE karid SET ac_name_14 = 'Madikeri' WHERE ac_id_09 = 208;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 208;
UPDATE karid SET pc_id_09 = 21 WHERE ac_id_09 = 208;
UPDATE karid SET pc_name_09 = 'Mysore' WHERE ac_id_09 = 208;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 208;
UPDATE karid SET ac_name_14 = 'Virajpet' WHERE ac_id_09 = 209;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 209;
UPDATE karid SET pc_id_09 = 21 WHERE ac_id_09 = 209;
UPDATE karid SET pc_name_09 = 'Mysore' WHERE ac_id_09 = 209;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 209;
UPDATE karid SET ac_name_14 = 'Piriyapatna' WHERE ac_id_09 = 210;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 210;
UPDATE karid SET pc_id_09 = 21 WHERE ac_id_09 = 210;
UPDATE karid SET pc_name_09 = 'Mysore' WHERE ac_id_09 = 210;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 210;
UPDATE karid SET ac_name_14 = 'Krishnarajanagara' WHERE ac_id_09 = 211;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 211;
UPDATE karid SET pc_id_09 = 20 WHERE ac_id_09 = 211;
UPDATE karid SET pc_name_09 = 'Mandya' WHERE ac_id_09 = 211;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 211;
UPDATE karid SET ac_name_14 = 'Hunsur' WHERE ac_id_09 = 212;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 212;
UPDATE karid SET pc_id_09 = 21 WHERE ac_id_09 = 212;
UPDATE karid SET pc_name_09 = 'Mysore' WHERE ac_id_09 = 212;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 212;
UPDATE karid SET ac_name_14 = 'Heggadadevankote' WHERE ac_id_09 = 213;
UPDATE karid SET ac_reserved_14 = 'ST' WHERE ac_id_09 = 213;
UPDATE karid SET pc_id_09 = 22 WHERE ac_id_09 = 213;
UPDATE karid SET pc_name_09 = 'Chamarajanagar' WHERE ac_id_09 = 213;
UPDATE karid SET pc_reserved_09 = 'SC' WHERE ac_id_09 = 213;
UPDATE karid SET ac_name_14 = 'Nanjangud' WHERE ac_id_09 = 214;
UPDATE karid SET ac_reserved_14 = 'SC' WHERE ac_id_09 = 214;
UPDATE karid SET pc_id_09 = 22 WHERE ac_id_09 = 214;
UPDATE karid SET pc_name_09 = 'Chamarajanagar' WHERE ac_id_09 = 214;
UPDATE karid SET pc_reserved_09 = 'SC' WHERE ac_id_09 = 214;
UPDATE karid SET ac_name_14 = 'Chamundeshwari' WHERE ac_id_09 = 215;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 215;
UPDATE karid SET pc_id_09 = 21 WHERE ac_id_09 = 215;
UPDATE karid SET pc_name_09 = 'Mysore' WHERE ac_id_09 = 215;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 215;
UPDATE karid SET ac_name_14 = 'Krishnaraja' WHERE ac_id_09 = 216;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 216;
UPDATE karid SET pc_id_09 = 21 WHERE ac_id_09 = 216;
UPDATE karid SET pc_name_09 = 'Mysore' WHERE ac_id_09 = 216;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 216;
UPDATE karid SET ac_name_14 = 'Chamaraja' WHERE ac_id_09 = 217;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 217;
UPDATE karid SET pc_id_09 = 21 WHERE ac_id_09 = 217;
UPDATE karid SET pc_name_09 = 'Mysore' WHERE ac_id_09 = 217;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 217;
UPDATE karid SET ac_name_14 = 'Narasimharaja' WHERE ac_id_09 = 218;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 218;
UPDATE karid SET pc_id_09 = 21 WHERE ac_id_09 = 218;
UPDATE karid SET pc_name_09 = 'Mysore' WHERE ac_id_09 = 218;
UPDATE karid SET pc_reserved_09 = '' WHERE ac_id_09 = 218;
UPDATE karid SET ac_name_14 = 'Varuna' WHERE ac_id_09 = 219;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 219;
UPDATE karid SET pc_id_09 = 22 WHERE ac_id_09 = 219;
UPDATE karid SET pc_name_09 = 'Chamarajanagar' WHERE ac_id_09 = 219;
UPDATE karid SET pc_reserved_09 = 'SC' WHERE ac_id_09 = 219;
UPDATE karid SET ac_name_14 = 'T narasipur' WHERE ac_id_09 = 220;
UPDATE karid SET ac_reserved_14 = 'SC' WHERE ac_id_09 = 220;
UPDATE karid SET pc_id_09 = 22 WHERE ac_id_09 = 220;
UPDATE karid SET pc_name_09 = 'Chamarajanagar' WHERE ac_id_09 = 220;
UPDATE karid SET pc_reserved_09 = 'SC' WHERE ac_id_09 = 220;
UPDATE karid SET ac_name_14 = 'Hanur' WHERE ac_id_09 = 221;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 221;
UPDATE karid SET pc_id_09 = 22 WHERE ac_id_09 = 221;
UPDATE karid SET pc_name_09 = 'Chamarajanagar' WHERE ac_id_09 = 221;
UPDATE karid SET pc_reserved_09 = 'SC' WHERE ac_id_09 = 221;
UPDATE karid SET ac_name_14 = 'Kollegal' WHERE ac_id_09 = 222;
UPDATE karid SET ac_reserved_14 = 'SC' WHERE ac_id_09 = 222;
UPDATE karid SET pc_id_09 = 22 WHERE ac_id_09 = 222;
UPDATE karid SET pc_name_09 = 'Chamarajanagar' WHERE ac_id_09 = 222;
UPDATE karid SET pc_reserved_09 = 'SC' WHERE ac_id_09 = 222;
UPDATE karid SET ac_name_14 = 'Chamarajanagar' WHERE ac_id_09 = 223;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 223;
UPDATE karid SET pc_id_09 = 22 WHERE ac_id_09 = 223;
UPDATE karid SET pc_name_09 = 'Chamarajanagar' WHERE ac_id_09 = 223;
UPDATE karid SET pc_reserved_09 = 'SC' WHERE ac_id_09 = 223;
UPDATE karid SET ac_name_14 = 'Gundlupet' WHERE ac_id_09 = 224;
UPDATE karid SET ac_reserved_14 = '' WHERE ac_id_09 = 224;
UPDATE karid SET pc_id_09 = 22 WHERE ac_id_09 = 224;
UPDATE karid SET pc_name_09 = 'Chamarajanagar' WHERE ac_id_09 = 224;
UPDATE karid SET pc_reserved_09 = 'SC' WHERE ac_id_09 = 224;
COMMIT;
.mode csv
.headers on
Oops, something went wrong.

0 comments on commit 3d5d102

Please sign in to comment.
You can’t perform that action at this time.