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): def search(self, channel, text):
db = self._getDb(channel) db = self._getDb(channel)
cursor = db.cursor() cursor = db.cursor()
text = '%' + text + '%' text = '%' + text + '%'
cursor.execute("""SELECT id, nick, quote FROM quotegrabs cursor.execute("""SELECT id, nick, quote FROM quotegrabs
WHERE quote LIKE %s WHERE quote LIKE %s
ORDER BY id DESC""", text) ORDER BY id DESC""", text)
if cursor.rowcount == 0: if cursor.rowcount == 0:
raise dbi.NoRecordError raise dbi.NoRecordError
return [QuoteGrabsRecord(id, text=quote, by=nick) return [QuoteGrabsRecord(id, text=quote, by=nick)