Fix TypeError

This commit is contained in:
croneter 2018-11-26 17:23:35 +01:00
parent a7243d813d
commit a0e14ca2cb

View file

@ -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]