Unverified Commit d6a6ff6b by CapsLock

[Feature] Moar randomness (album)

Signed-off-by: CapsLock <faimaison@legeox.net>
parent f73e59f6
......@@ -122,7 +122,9 @@ def default(db):
' pres'
' where p.id = pdn.picture_id'
' and pdn.domain_name_id = pres.related_to)'
' select distinct on (id) * from pics;',
' select * from('
' select distinct on (id) * from pics) dd '
' order by random();',
(get_host_name(), get_host_name()))
pictures = db.fetchall()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment