summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-05-13 11:44:04 +0200
committerYorhel <git@yorhel.nl>2015-05-13 11:44:04 +0200
commit2a783edbab51aa490884814c9c45f919886d70ef (patch)
tree98651556b6bd7f8b3e059381aa1a968cad624161 /lib
parent339599d9f8afaa61862836d2c89ce0d76045f122 (diff)
Add staff statistic to main menu
Diffstat (limited to 'lib')
-rw-r--r--lib/Multi/Maintenance.pm1
-rw-r--r--lib/VNDB/Util/LayoutHTML.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/Multi/Maintenance.pm b/lib/Multi/Maintenance.pm
index 7f5d8799..d7a9907d 100644
--- a/lib/Multi/Maintenance.pm
+++ b/lib/Multi/Maintenance.pm
@@ -137,6 +137,7 @@ my %monthlies = (
stats_rel => q|UPDATE stats_cache SET count = (SELECT COUNT(*) FROM releases WHERE hidden = FALSE) WHERE section = 'releases'|,
stats_prod => q|UPDATE stats_cache SET count = (SELECT COUNT(*) FROM producers WHERE hidden = FALSE) WHERE section = 'producers'|,
stats_chars => q|UPDATE stats_cache SET count = (SELECT COUNT(*) FROM chars WHERE hidden = FALSE) WHERE section = 'chars'|,
+ stats_chars => q|UPDATE stats_cache SET count = (SELECT COUNT(*) FROM staff WHERE hidden = FALSE) WHERE section = 'staff'|,
stats_tags => q|UPDATE stats_cache SET count = (SELECT COUNT(*) FROM tags WHERE state = 2) WHERE section = 'tags'|,
stats_trait => q|UPDATE stats_cache SET count = (SELECT COUNT(*) FROM traits WHERE state = 2) WHERE section = 'traits'|,
stats_thread=> q|UPDATE stats_cache SET count = (SELECT COUNT(*) FROM threads WHERE hidden = FALSE) WHERE section = 'threads'|,
diff --git a/lib/VNDB/Util/LayoutHTML.pm b/lib/VNDB/Util/LayoutHTML.pm
index e51ec998..e9cc4c54 100644
--- a/lib/VNDB/Util/LayoutHTML.pm
+++ b/lib/VNDB/Util/LayoutHTML.pm
@@ -125,7 +125,7 @@ sub _menu {
h2 mt '_menu_dbstats';
div;
dl;
- for (qw|vn releases producers chars tags traits users threads posts|) {
+ for (qw|vn releases producers chars staff tags traits users threads posts|) {
dt mt "_menu_stat_$_";
dd $self->{stats}{$_};
}