voteview / WebVoteView

Webbased rollcall vote visualization software
MIT License
35 stars 5 forks source link

Remove Python heavy lifting from view files #350

Open aaronrudkin opened 6 years ago

aaronrudkin commented 6 years ago

In general we don't want Python code doing actual work with the data running in template code. The template code should be passed everything it needs and just do displaying.

aaronrudkin commented 6 years ago

I think this is a pretty good entry point into the code. Ideally we want to be migrating actual actionable code from views -> app.py and from app.py -> model, and since a lot of it is just refactoring, probably it would be a fairly good entry point. I have checked off a bunch of these scripts, but someone else should do another pass and really make sure that nothing non-trivial is being done in templating code.