Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix pagination #26

Merged
merged 1 commit into from
Jul 19, 2024
Merged

fix pagination #26

merged 1 commit into from
Jul 19, 2024

Conversation

abirukov
Copy link

@abirukov abirukov commented Jul 18, 2024

Hello! unfortunately in the Bitrix24 REST API some answers come with an additional level of nesting.
Example:

{
	result: {
		tasks: [
			{
				id: "117",
				...
			}
		]
	}
}

and then we get an error:

	TypeError: unsupported operand type(s) for +: 'dict' and 'list'

also, your tests work correctly if the total is divided by 50 without remainder, but if there is a remainder, then the test will break, the number of elements in the answer will also be incorrect.

These changes fix these errors.

@akopdev akopdev merged commit 6ed802f into akopdev:master Jul 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants