Skip to content

Commit

Permalink
feat: last_sync param is lost in list_since
Browse files Browse the repository at this point in the history
  • Loading branch information
ishtanzar committed Mar 5, 2024
1 parent cca9716 commit 1ae3ff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wm-utils/src/westmarches_utils/api/kanka.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async def list_since(self, page=1, related=False, last_sync=None, **kwargs) ->
if next_url := response_json.get('links', {}).get('next'):
if next_query := urlparse(next_url).query:
if (next_page := int(parse_qs(next_query).get('page', [None])[0])) > page:
data += (await AbstractKankaApi.list_since(self, page=next_page, **kwargs))[0]
data += (await AbstractKankaApi.list_since(self, next_page, related, last_sync, **kwargs))[0]

return data, response_json.get('sync')

Expand Down

0 comments on commit 1ae3ff7

Please sign in to comment.