Commit 454bcdb2 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Simplify condition: None is always lower that anything else.

Use max() instead of if <condition>: ...


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1080 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent aeda6d88
...@@ -39,7 +39,7 @@ class RecoveryHandler(MasterHandler): ...@@ -39,7 +39,7 @@ class RecoveryHandler(MasterHandler):
app.loid = loid app.loid = loid
if app.ltid < ltid: if app.ltid < ltid:
app.ltid = ltid app.ltid = ltid
if lptid is not None and pt.getID() is None or pt.getID() < lptid: if lptid > pt.getID():
# something newer # something newer
app.pt.setID(lptid) app.pt.setID(lptid)
app.target_uuid = conn.getUUID() app.target_uuid = conn.getUUID()
......
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