1
0
Fork 0
mirror of https://github.com/Findus23/RadioStats.git synced 2024-09-19 16:03:48 +02:00
This commit is contained in:
Lukas Winkler 2018-02-23 21:03:04 +01:00
parent 3b80dfc630
commit 7c62bf6092
No known key found for this signature in database
GPG key ID: 94AFBE7C2656A5B5

View file

@ -20,7 +20,7 @@ query = Song.select().where((Song.show == 0))
if not len(sys.argv) > 3 or sys.argv[2] != "force":
query = query.where(Song.spotify_data.is_null())
else:
starting = int(sys.argv[2])
starting = int(sys.argv[3])
print("fetching empty starting from {id}".format(id=starting))
query = query.where((Song.spotify_data == 0) & (Song.id >= starting))
for song in query.limit(limit):