Fix TypeError
This commit is contained in:
parent
a7243d813d
commit
a0e14ca2cb
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ class Sections(object):
|
||||||
"""
|
"""
|
||||||
Returns the section_id for section_name (or None)
|
Returns the section_id for section_name (or None)
|
||||||
"""
|
"""
|
||||||
self.cursor.execute('SELECT section_id FROM sections WHERE section_name = ? LIMIT 1,'
|
self.cursor.execute('SELECT section_id FROM sections WHERE section_name = ? LIMIT 1',
|
||||||
(section_name, ))
|
(section_name, ))
|
||||||
try:
|
try:
|
||||||
return self.cursor.fetchone()[0]
|
return self.cursor.fetchone()[0]
|
||||||
|
|
Loading…
Reference in a new issue