mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +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):
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user