mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-29 21:54:22 +01:00
Remove evil tabs!
This commit is contained in:
parent
92839a94e7
commit
bc9f0ee39e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user