-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix spaghettiness #10
Conversation
LGTM |
Still need hosting? |
Possibly, was using DigitalOcean previously but if you have a better option I'm all ears! |
In that case, I suggest checking out Amazon Lightsail. Starting at $3.5/month for the lowest tier. Free 3 months trial. You can always go serverless for free! Shout out https://vercel.com |
|
Tried to close comment box and closed PR, classy. |
Parliament schedules for testing:ACT31-8-21 QLD13-8-21 31-8-21 Vic17-8-21 Tas24-8-21 SA13-8-21 24-8-21 WA17-8-21 NSW16-8-21 |
467828c
to
69767ec
Compare
Anti spaghetti brigade
This pull request is similar to our ausbills update which refactors the code into a consistent model-based system.
Key changes
The main difference is the new
StreamModel
dataclass
, which creates a standard for stream objects that all sites must follow, e.g stream URLs, titles, and their live statuses.This method will make it easy for the web app to simply utilise
importlib
to loop through the various parliaments, rather than the stupid system I wrote in late 2020 which is stupid and bad.The parliament modules have also all been moved into the
site
directory, so in the event that a jurisdiction secedes from Australia, or New Zealand becomes an Australian state, Legistream can quickly and automatically adapt to the minor changes.Closes Issues