]> git.decadent.org.uk Git - memories.git/blobdiff - Memories/Photo.pm
It's a bit of a hack but we blatantly can't call it "rated". Closes #11, anyhow.
[memories.git] / Memories / Photo.pm
index 5a9b91e56aa133ea4cda60c948a12a6d7e7a9bba..eef30194cba202444604288434fd44cdf8fd1e67 100644 (file)
@@ -14,7 +14,9 @@ BEGIN {
 my %order_by = (
      recent => "uploaded",
      popular => "hit_count",
-     interesting => INTERESTINGNESS_ALGORITHM
+     loved => "rating/(1+rated)",
+     interesting => INTERESTINGNESS_ALGORITHM,
+     random => "rand()"
 );
 
 while (my($label, $how) = each %order_by) {