Describe the bug
There is a typo within the file main.py on line 160.
When using an IdRange the string 'i&dRange' is appended to the request.
But instead of 'i&dRange' the value '&idRange' needs to be added.
This renders the Range-Feature useless and jokes with random IDs are returned.
To Reproduce
Steps to reproduce the behavior:
Use the optional IdRange Parameter
Expected behavior
The idRange should be applied as a filter. Only jokes that have their IDs within the requested range should be returned.
Error and/or code snippet
if id_range:
r += f"i&dRange={id_range[0]}-{id_range[1]}"
Needs to be changed into:
if id_range:
r += f"i&dRange={id_range[0]}-{id_range[1]}"
Describe the bug There is a typo within the file main.py on line 160. When using an IdRange the string 'i&dRange' is appended to the request. But instead of 'i&dRange' the value '&idRange' needs to be added. This renders the Range-Feature useless and jokes with random IDs are returned.
To Reproduce Steps to reproduce the behavior:
Expected behavior The idRange should be applied as a filter. Only jokes that have their IDs within the requested range should be returned.
Error and/or code snippet if id_range: r += f"i&dRange={id_range[0]}-{id_range[1]}"
Needs to be changed into: if id_range: r += f"i&dRange={id_range[0]}-{id_range[1]}"
Thanks very much!