aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthew <matthew>2007-03-21 16:04:39 +0000
committermatthew <matthew>2007-03-21 16:04:39 +0000
commit1d4aa709a2f9525779fe7cd30a2bdecd8b85d9a6 (patch)
tree43fcab97123f0715bca2db86136cd8a7ef6a26fd
parent3ac2b90d694853cceaa2387282f2e17755d492ee (diff)
Typo.
-rwxr-xr-xbin/import-categories6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/import-categories b/bin/import-categories
index f0f6ff88f..e269e9176 100755
--- a/bin/import-categories
+++ b/bin/import-categories
@@ -6,7 +6,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org. WWW: http://www.mysociety.org
#
-# $Id: import-categories,v 1.1 2007-03-21 15:48:31 matthew Exp $
+# $Id: import-categories,v 1.2 2007-03-21 16:04:39 matthew Exp $
use strict;
require 5.8.0;
@@ -63,7 +63,7 @@ foreach my $id (keys %$councils) {
add_categories($id, $email, $confirmed, @district_cats, @county_cats);
}
}
-# dbh()->commit();
+dbh()->commit();
sub add_categories {
my ($id, $email, $confirmed, @cats) = @_;
@@ -71,7 +71,7 @@ sub add_categories {
dbh()->do("insert into contacts
(area_id, category, email, editor, whenedited, note, confirmed, deleted)
values
- (?, ?, ?, 'import', ms_current_timestamp(), 'Initial copy', ?, 0)", {},
+ (?, ?, ?, 'import', ms_current_timestamp(), 'Initial copy', ?, 'f')", {},
$id, $_, $email, ($confirmed ? 1 : 0)
);
}