Elm stateful lister
Use another Api endpoint that helps the lister to be stateful. The Api endpoint used needs a ``since`` value that represents a sequential index in the history. The ``all_packages_count`` state helps in storing a count which will be used as ``since`` argument on the next run.
Showing
- swh/lister/elm/__init__.py 13 additions, 9 deletionsswh/lister/elm/__init__.py
- swh/lister/elm/lister.py 54 additions, 13 deletionsswh/lister/elm/lister.py
- swh/lister/elm/tests/data/https_package.elm-lang.org/all-packages_since_0 1 addition, 0 deletions...ests/data/https_package.elm-lang.org/all-packages_since_0
- swh/lister/elm/tests/data/https_package.elm-lang.org/all-packages_since_3 1 addition, 0 deletions...ests/data/https_package.elm-lang.org/all-packages_since_3
- swh/lister/elm/tests/data/https_package.elm-lang.org/all-packages_since_4 1 addition, 0 deletions...ests/data/https_package.elm-lang.org/all-packages_since_4
- swh/lister/elm/tests/data/https_package.elm-lang.org/search.json 0 additions, 20 deletions...ter/elm/tests/data/https_package.elm-lang.org/search.json
- swh/lister/elm/tests/test_lister.py 63 additions, 5 deletionsswh/lister/elm/tests/test_lister.py
Loading
Please register or sign in to comment