Open IAlwaysBeCoding opened 5 years ago
The docs need to be changed to let the user know that _refresh_states() also takes a non iterable, aka a single object not contained in a list.
_refresh_states()
https://github.com/scrapinghub/frontera/blob/8ac23162e97f6e685534c029e1da19d867c037d7/frontera/strategy/__init__.py#L139-L145
That's because the function refresh_and_keep() converts the non iterable object into a non-iterable object contained within a list.
refresh_and_keep()
https://github.com/scrapinghub/frontera/blob/8ac23162e97f6e685534c029e1da19d867c037d7/frontera/core/manager.py#L818-L822
Good catch! Can you make PR @IAlwaysBeCoding ?
The docs need to be changed to let the user know that
_refresh_states()
also takes a non iterable, aka a single object not contained in a list.https://github.com/scrapinghub/frontera/blob/8ac23162e97f6e685534c029e1da19d867c037d7/frontera/strategy/__init__.py#L139-L145
That's because the function
refresh_and_keep()
converts the non iterable object into a non-iterable object contained within a list.https://github.com/scrapinghub/frontera/blob/8ac23162e97f6e685534c029e1da19d867c037d7/frontera/core/manager.py#L818-L822