sql works

This commit is contained in:
lickthecheese 2020-02-19 11:47:24 -05:00
parent 1e0225bea4
commit eceebec4fd
1 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,10 @@ def sql(self, c,n,m):
co.execute(m[4:]) co.execute(m[4:])
a = co.fetchall() a = co.fetchall()
if len(a) > 0: if len(a) > 0:
self.say(c,' '.join(a)) op = ''
for i in a:
op = op+' | '+ ', '.join(i)
self.say(c,op)
else: else:
self.say(c, 'no output') self.say(c, 'no output')
conn.commit() conn.commit()