From 87daa6075ffa7dc9b583e13702dd10270f3a0834 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Thu, 20 Dec 2012 20:00:23 +0100 Subject: tracking: Fixed label command. --- modules/tracking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/tracking.py b/modules/tracking.py index 6fa01d7..12fcffa 100644 --- a/modules/tracking.py +++ b/modules/tracking.py @@ -305,7 +305,7 @@ class Module: msg = None try: session = Session() - consignment = session.query(Consignment).filter_by(server = server).filter_by(code = code).filter_by(nick = nick).one() + consignment = session.query(Consignment).filter(and_(Consignment.server == self.irc.factory.server, Consignment.code == code, Consignment.nick == nick)).one() consignment.label = label.decode('utf8') session.add(consignment) session.commit() -- cgit v1.2.3