allow jumps in changelog

This commit is contained in:
j 2015-12-01 15:15:18 +01:00
parent 70fcd5b20c
commit 2665580383

View file

@ -79,7 +79,7 @@ class Changelog(db.Model):
revision, timestamp, data = change
last = cls.query.filter_by(user_id=user.id).order_by('-revision').first()
next_revision = last.revision + 1 if last else 0
if revision == next_revision:
if revision >= next_revision:
c = cls()
c.created = datetime.utcnow()
c.timestamp = timestamp