robled/bf4-server-status — pull request #15 by seandst (2014-12-20 20:14:01+00:00)
Title: Betterfied

This addresses a few issues.

First, since it appears bf4-server-status is running in a virtualenv, I gave it a good requirements file. Just do what the readme says in the activeate virtualenv.

Second, I replaced django with jinja2, since jinja2 is a framework-agnostic version of the django templating system, and we were only using django for its templating system. You can see in the Django->Jinja commit that the switch was pretty painless.

Third, I split the playerlist up by teams, and not a silly modulo switcher. This required some tweaking of the `player_data` that gets tossed around, specifically the keys are `Player` objects, not just the player names, since I needed to get at the player's teamId later on.

And finally, I linted stuff and organized the imports so that my editor stops yelling at me about all the badness. It's still pissed about line lengths in the HTML, but I don't care.