Fix queryLyrics() call, return ID of added row

This commit is contained in:
Klaus-Uwe Mitterer 2017-02-26 20:54:40 +01:00
parent 7c7d612311
commit 1502bf94b6

View file

@ -32,12 +32,14 @@ def queryLyrics(ref = 0):
ans = "."
while ans.lower() not in ("y", "n", ""):
ans = input("Add follow-up lyrics? [Y/n] ")
ans = input("Added as %i. Add follow-up lyrics? [Y/n] " % int(row))
if ans.lower() != "n":
return True
return row
return False
if __name__ == "__main__":
while queryLyrics():
continue
row = 0
while row is not False:
row = queryLyrics(row)