Skip to content

Commit

Permalink
fix history result offset field, prepare 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Dec 13, 2021
1 parent 9c1fee7 commit a974c39
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v4.1.0
======

* Fix `offset` field in history result which previously contained `publications`, [#24](https://github.com/centrifugal/cent/issues/24).

v4.0.1
======

Expand Down
2 changes: 1 addition & 1 deletion cent/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def history(self, channel, limit=0, since=None, reverse=False):
result = self._send_one()
return {
"publications": result.get("publications", []),
"offset": result.get("publications", 0),
"offset": result.get("offset", 0),
"epoch": result.get("epoch", ""),
}

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def long_description():

setup(
name='cent',
version='4.0.1',
version='4.1.0',
description="Python library to communicate with Centrifugo v3 HTTP API",
long_description=long_description(),
url='https://github.com/centrifugal/cent',
Expand Down

0 comments on commit a974c39

Please sign in to comment.