X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=Memories%2FPhoto.pm;h=eef30194cba202444604288434fd44cdf8fd1e67;hb=7767c51977a235b2f9205da1a94b07ba55ad2f52;hp=5a9b91e56aa133ea4cda60c948a12a6d7e7a9bba;hpb=006c40622b5547fcbb693fb37e2216e1d0e7bb6e;p=memories.git diff --git a/Memories/Photo.pm b/Memories/Photo.pm index 5a9b91e..eef3019 100644 --- a/Memories/Photo.pm +++ b/Memories/Photo.pm @@ -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) {