summaryrefslogtreecommitdiff
path: root/util/jsgen.pl
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-11-26 09:27:52 +0100
committerYorhel <git@yorhel.nl>2010-11-26 09:27:52 +0100
commitfb1af20108f5b5e558dc30c8be25cd3f4c4a20af (patch)
treedd8e3bf3080c770e1c180b5a456453bf991eb112 /util/jsgen.pl
parentdd0ebd6963f42dc00eedc5d896ed3c60b99b72f1 (diff)
Added animation field release filter
Surprisingly enough, the SQL queries are still quite fast even when matching on the animation columns. And thanks to the new filter system, adding this filter was incredibly easy.
Diffstat (limited to 'util/jsgen.pl')
-rwxr-xr-xutil/jsgen.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/jsgen.pl b/util/jsgen.pl
index fd216d7e..a0f85006 100755
--- a/util/jsgen.pl
+++ b/util/jsgen.pl
@@ -108,7 +108,8 @@ sub jsgen {
$common .= sprintf "languages = [ %s ];\n", join ', ', map qq{"$_"}, @{$S{languages}};
$common .= sprintf "platforms = [ %s ];\n", join ', ', map qq{"$_"}, @{$S{platforms}};
$common .= sprintf "media = [ %s ];\n", join ', ', map qq{"$_"}, sort keys %{$S{media}};
- $common .= sprintf "release_types = [ %s ];\n", join ', ', map qq{"$_"}, sort @{$S{release_types}};
+ $common .= sprintf "release_types = [ %s ];\n", join ', ', map qq{"$_"}, @{$S{release_types}};
+ $common .= sprintf "animated = [ %s ];\n", join ', ', @{$S{animated}};
$common .= sprintf "L10N_LANG = [ %s ];\n", join(', ', map qq{"$_"}, VNDB::L10N::languages());
open my $JS, '<:utf8', "$ROOT/data/script.js" or die $!;