summaryrefslogtreecommitdiff
path: root/modules/tracking.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tracking.py')
-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()