-
- Private work.
- Still a great tweet: https://twitter.com/mxcl/status/608682016205344768 (top tech companies are, and should be, shifting evaluation methods for better candidate filtering).
- Finished the awful cayenne segment today (>2wks).
- Qatar Masters finishes. Magnus, Anish, others tied for 9th. Hikaru, Arjun, Gukesh among those tied for 3rd. Abdu and another uzbek 1st/2nd! Swiss is always so weird. You’re only playing a super GM maybe once in the 9 rounds. I’ve only heard of 3/9 players that the winner faced (Arjun, Sindarov, Adhiban).
- Generators (with recursion) for flattening nested lists (arbitrarily deep). Or appends/extends with iterators.
- Supercontest.
- Pulled some logic out of the templates (hard to manage) into the app (easy to manage). Will merge once I migrate to tsx, but this is a helpful change for the timebeing.
- Remember the
do
directive in jinja2. Like set
to define a variable, do
will run some code (like updating dict val, whatever). Need to add the ext to the jinja env tho.
- Cleaned up all the conditionals in jinja2 for season/week/league. Now it infers from
g.params
, updating the dict with whatever dropdown you’re iterating over. Eg: season dropdown will retain week and league (from current view), and provide a link for all seasons.
- Also, the navbar dropdowns had hardcoded route name checks for conditionality. Now it just inspects to see if you’re on a view that has season, week, or league – and presents a dropdown for each present param.
- Moved the subtitle-building functionality for each contest view from the general header to the 4 specific view templates (they’re diff by season/week/league).