allow jumps in changelog
This commit is contained in:
parent
70fcd5b20c
commit
2665580383
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue