X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=Memories%2FPhoto.pm;h=e5cb9a0d51cad0d9c73f743ed312bf2f14459868;hb=f13b769823b6bd8bc9006e12970bec48969cb695;hp=5a9b91e56aa133ea4cda60c948a12a6d7e7a9bba;hpb=006c40622b5547fcbb693fb37e2216e1d0e7bb6e;p=memories.git diff --git a/Memories/Photo.pm b/Memories/Photo.pm index 5a9b91e..e5cb9a0 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 + rated => "rating/(1+rated)", + interesting => INTERESTINGNESS_ALGORITHM, + random => "rand()" ); while (my($label, $how) = each %order_by) {