Don't strip down single-element lists

This is causing problems, so don't do it.
This commit is contained in:
Joshua Boniface 2020-01-04 11:14:55 -05:00
parent e4a83bb063
commit 19ea01e17e
1 changed files with 0 additions and 4 deletions

View File

@ -127,10 +127,6 @@ def list_template(limit, table, is_fuzzy=True):
close_database(conn, cur) close_database(conn, cur)
# Strip outer list if only one element
if isinstance(data, list) and len(data) == 1:
data = data[0]
return data return data
def list_template_system(limit, is_fuzzy=True): def list_template_system(limit, is_fuzzy=True):