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 cbe1c60774
commit 297bf410ec

View file

@ -32,12 +32,14 @@ def queryLyrics(ref = 0):
ans = "." ans = "."
while ans.lower() not in ("y", "n", ""): 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": if ans.lower() != "n":
return True return row
return False return False
if __name__ == "__main__": if __name__ == "__main__":
while queryLyrics(): row = 0
continue while row is not False:
row = queryLyrics(row)