mirror of
https://github.com/Findus23/RadioStats.git
synced 2024-09-19 16:03:48 +02:00
only fetch color for songs with spotify data
This commit is contained in:
parent
560558146e
commit
108f7e2403
1 changed files with 1 additions and 1 deletions
2
color.py
2
color.py
|
@ -27,7 +27,7 @@ if len(sys.argv) > 1:
|
||||||
else:
|
else:
|
||||||
limit = 50
|
limit = 50
|
||||||
|
|
||||||
query = Song.select().where((Song.show == 0) & (Song.image_large.is_null(False)) & (Song.background_color.is_null()))
|
query = Song.select().where((Song.show == 0) & (Song.spotify_data == 1) & (Song.background_color.is_null()))
|
||||||
for song in query.limit(limit):
|
for song in query.limit(limit):
|
||||||
print(song.title)
|
print(song.title)
|
||||||
url = song.image_large
|
url = song.image_large
|
||||||
|
|
Loading…
Reference in a new issue