summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2012-12-20 20:00:23 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2012-12-20 20:00:23 +0100
commit87daa6075ffa7dc9b583e13702dd10270f3a0834 (patch)
tree6124ecb66d291376cdd1f39395af604ec11e11b7 /modules
parent46a0c6ee1c2655e3d7823b02866417ba50032287 (diff)
tracking: Fixed label command.
Diffstat (limited to 'modules')
-rw-r--r--modules/tracking.py2
1 files changed, 1 insertions, 1 deletions
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()