This commit is contained in:
j 2016-01-12 00:22:27 +05:30
parent 206e39c62d
commit 6061f2d754

View file

@ -67,7 +67,10 @@ class Changelog(db.Model):
# fixme remove
c = cls()
c.created = datetime.utcnow()
if ts:
c.timestamp = datetime2ts(ts)
else:
c.timestamp = datetime2ts(c.created)
c.user_id = user.id
c.revision = cls.query.filter_by(user_id=user.id).count()
c.data = json.dumps([action] + list(args), ensure_ascii=False)