Remove evil tabs!

This commit is contained in:
James Vega 2005-02-01 13:57:51 +00:00
parent 92839a94e7
commit bc9f0ee39e

View File

@ -171,11 +171,11 @@ class SqliteQuoteGrabsDB(object):
def search(self, channel, text):
db = self._getDb(channel)
cursor = db.cursor()
cursor = db.cursor()
text = '%' + text + '%'
cursor.execute("""SELECT id, nick, quote FROM quotegrabs
WHERE quote LIKE %s
ORDER BY id DESC""", text)
cursor.execute("""SELECT id, nick, quote FROM quotegrabs
WHERE quote LIKE %s
ORDER BY id DESC""", text)
if cursor.rowcount == 0:
raise dbi.NoRecordError
return [QuoteGrabsRecord(id, text=quote, by=nick)