Fix queryLyrics() call, return ID of added row
This commit is contained in:
parent
7c7d612311
commit
1502bf94b6
1 changed files with 6 additions and 4 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue