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

Command refactor #15

Merged
merged 3 commits into from
Aug 11, 2021
Merged

Command refactor #15

merged 3 commits into from
Aug 11, 2021

Commits on Jul 1, 2021

  1. Add some more example tags

    This lets us run a command like:
    $ python manage.py councillors -t example -v
    
    Which is useful when trying out commands that run multiple scrapers.
    GeoWill committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    711a568 View commit details
    Browse the repository at this point in the history
  2. Refactor base commands

    This pulls what was in the councillor command into the
    PerCouncilCommandBase class. This is so that it can be reused.
    
    Along the way I've:
    - dropped reporting on skipped/missing/etc councils with the progress
    bars - these can come back, but weren't working as intended.
    - Made the command runner explicitly call `execute` rather than it
    appear in the __init__ method.
    - Added a 'pretty' flag to manage what output is shown.
    GeoWill committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    1febe92 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2021

  1. Configuration menu
    Copy the full SHA
    574a05a View commit details
    Browse the repository at this point in the history