summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-05-10 16:41:43 +0200
committerYorhel <git@yorhel.nl>2009-05-10 16:41:43 +0200
commitcc9183bfec6e459ea94da0b5dc32976757f715a4 (patch)
tree7779644eb7ab21dddec625c9a11e0c21f4a4ce51
parentc46007a2affa157990524a268491f1c4a6ad2262 (diff)
Don't apply release date filter when it covers the full range
Performance improvement of ~20ms
-rw-r--r--lib/VNDB/Handler/Releases.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm
index 011e1ca4..32629131 100644
--- a/lib/VNDB/Handler/Releases.pm
+++ b/lib/VNDB/Handler/Releases.pm
@@ -437,7 +437,7 @@ sub browse {
order => $f->{s}.($f->{o}eq'd'?' DESC':' ASC'),
page => $f->{p},
results => 50,
- date => [ $mindate, $maxdate ],
+ $mindate > 0 || $maxdate < 99990000 ? (date => [ $mindate, $maxdate ]) : (),
$f->{q} ? (search => $f->{q}) : (),
$f->{pl}[0] ? (platforms => $f->{pl}) : (),
$f->{ln}[0] ? (languages => $f->{ln}) : (),