summaryrefslogtreecommitdiff
path: root/lib/VNDB/DB
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-08-08 02:10:40 +0200
committerYorhel <git@yorhel.nl>2015-08-08 02:10:40 +0200
commit6c46c3bd553734944847193a3356176efc3416e7 (patch)
tree235050d0632a687ca6338cf63c4ac16c338f7b08 /lib/VNDB/DB
parent7c3c7ed1ae63299925c6fdab306c57e9ee232f26 (diff)
Add sexual trait toggle to character information
It's not a preference yet and the sexual traits are still visible by default. I'll fix that later.
Diffstat (limited to 'lib/VNDB/DB')
-rw-r--r--lib/VNDB/DB/Chars.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/DB/Chars.pm b/lib/VNDB/DB/Chars.pm
index 2f7de43f..3db5f869 100644
--- a/lib/VNDB/DB/Chars.pm
+++ b/lib/VNDB/DB/Chars.pm
@@ -87,7 +87,7 @@ sub dbCharGet {
if($o{what} =~ /traits/) {
push @{$r{ delete $_->{cid} }{traits}}, $_ for (@{$self->dbAll(q|
- SELECT ct.cid, ct.tid, ct.spoil, t.name, t."group", tg.name AS groupname
+ SELECT ct.cid, ct.tid, ct.spoil, t.name, t.sexual, t."group", tg.name AS groupname
FROM chars_traits ct
JOIN traits t ON t.id = ct.tid
LEFT JOIN traits tg ON tg.id = t."group"