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 = "."
|
||||
|
||||
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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue