mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-27 21:22:39 +01:00
Oops, forgot to change the name of the defined function.
This commit is contained in:
parent
e8f3b6468c
commit
ce93c286e2
@ -185,6 +185,8 @@ class Lookup(callbacks.Privmsg):
|
||||
def f(self, irc, msg, args):
|
||||
args.insert(0, name)
|
||||
self._lookup(irc, msg, args)
|
||||
f = types.FunctionType(f.func_code, f.func_globals,
|
||||
name, closure=f.func_closure)
|
||||
db = self.dbHandler.getDb()
|
||||
cursor = db.cursor()
|
||||
cursor.execute("""SELECT COUNT(*) FROM %s""" % name)
|
||||
|
Loading…
Reference in New Issue
Block a user