Commit 138a8b34 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Unify comparison order.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1639 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent d0d85628
...@@ -196,7 +196,7 @@ class VerificationManager(BaseServiceHandler): ...@@ -196,7 +196,7 @@ class VerificationManager(BaseServiceHandler):
def answerLastIDs(self, conn, loid, ltid, lptid): def answerLastIDs(self, conn, loid, ltid, lptid):
app = self.app app = self.app
# If I get a bigger value here, it is dangerous. # If I get a bigger value here, it is dangerous.
if app.loid < loid or ltid > app.tm.getLastTID() \ if app.loid < loid or app.tm.getLastTID() < ltid \
or app.pt.getID() < lptid: or app.pt.getID() < lptid:
logging.critical('got later information in verification') logging.critical('got later information in verification')
raise VerificationFailure raise VerificationFailure
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment