mirror of
https://github.com/Findus23/RadioStats.git
synced 2024-09-19 16:03:48 +02:00
fix argv
This commit is contained in:
parent
3b80dfc630
commit
7c62bf6092
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue