Skip to content

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
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