1
0
Fork 0
mirror of https://github.com/Findus23/RadioStats.git synced 2024-09-19 16:03:48 +02:00

fix postgresql function name

This commit is contained in:
Lukas Winkler 2021-11-25 13:23:09 +01:00
parent 5c7f64dc42
commit e0b3bd992c
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -31,7 +31,7 @@ else:
query = Song.select().where( query = Song.select().where(
(Song.show == 0) & (Song.spotify_data == 1) & (Song.image_large.is_null(False)) & (Song.background_color.is_null())) (Song.show == 0) & (Song.spotify_data == 1) & (Song.image_large.is_null(False)) & (Song.background_color.is_null()))
for song in query.order_by(fn.Rand()).limit(limit): for song in query.order_by(fn.random()).limit(limit):
print(song.title) print(song.title)
url = song.image_large url = song.image_large
print(url) print(url)