summaryrefslogtreecommitdiff
path: root/lib/VNDB/DB/Misc.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-12-09 13:08:08 +0100
committerYorhel <git@yorhel.nl>2008-12-09 13:08:08 +0100
commit66bc1533761ae28c0c8cbcea91b80c0319d86b39 (patch)
tree9b321ebbdc34c5b57501dfd0278b9b0fcadc8efd /lib/VNDB/DB/Misc.pm
parent62ab2e931cf21236e83d4483d8cb4eb773f26a89 (diff)
Code cleanup: removed leading spaces and combined DB/{Votes,VNList,WishList}.pm into ULists.pm
Diffstat (limited to 'lib/VNDB/DB/Misc.pm')
-rw-r--r--lib/VNDB/DB/Misc.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNDB/DB/Misc.pm b/lib/VNDB/DB/Misc.pm
index 9ebac75f..828d5281 100644
--- a/lib/VNDB/DB/Misc.pm
+++ b/lib/VNDB/DB/Misc.pm
@@ -12,7 +12,7 @@ our @EXPORT = qw|
# Returns: hashref, key = section, value = number of (visible) entries
# Sections: vn, producers, releases, users, threads, posts
-sub dbStats {
+sub dbStats {
my $s = shift;
return { map {
$_->{section} eq 'threads_posts' ? 'posts' : $_->{section}, $_->{count}
@@ -144,7 +144,7 @@ sub dbRevisionGet {
# arguments: v/r/p, id, %options ->( hidden, locked )
sub dbItemMod {
my($self, $type, $id, %o) = @_;
- $self->dbExec('UPDATE !s !H WHERE id = ?',
+ $self->dbExec('UPDATE !s !H WHERE id = ?',
{qw|v vn r releases p producers|}->{$type},
{ map { ($_.' = ?', int $o{$_}) } keys %o }, $id
);