fix changelog

This commit is contained in:
j 2019-02-22 22:22:01 +05:30
parent a45445d114
commit b7d140e36a

View file

@ -47,7 +47,7 @@ def add_record(action, *args, **kwargs):
state.changelog_size = 0 state.changelog_size = 0
makefolder(path) makefolder(path)
with open(path, mode) as fd: with open(path, mode) as fd:
fd.write(data + '\n') fd.write(data + b'\n')
state.changelog_size = os.path.getsize(path) state.changelog_size = os.path.getsize(path)
#logger.debug('record change: %s', data) #logger.debug('record change: %s', data)