Add missing import
This commit is contained in:
parent
6ad9a8a8da
commit
d77b129351
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import dbtools
|
||||||
|
|
||||||
def addLyrics(text, ref = 0, db = dbtools.dbHelper()):
|
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()
|
db.commit()
|
||||||
|
|
Loading…
Reference in a new issue