Add matching )

This commit is contained in:
Klaus-Uwe Mitterer 2017-02-21 16:08:09 +01:00
parent 9c59aceb78
commit 6ad9a8a8da

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python3
def addLyrics(text, ref = 0, db = dbtools.dbHelper()):
db.executeQuery("INSERT INTO lyrics(text, ref, active) VALUES('%s', %i, %i);" % (text, ref, (1 if ref == 0 else 0))
db.executeQuery("INSERT INTO lyrics(text, ref, active) VALUES('%s', %i, %i);" % (text, ref, (1 if ref == 0 else 0)))
db.commit()
return db.cur.lastrowid