• Supercontest.
      • Added a global @app.before_request to print the email of the user for all requests, to make the logs more clear.
      • Made the matchups js a lot smarter about iterating through picks. Instead of going over all matchups rows and comparing to picks, it gives the ids to the td cells and then targets the specific row, just iterating over the picks instead of all matchups.
      • It now adds a 2px border to cells for complete games, to distinguish between what is finished and what isn’t. This happens on the your-picks and all-picks views.
      • Fixed the emailer. The problem was the asyncronous job adding. APscheduler is a piece of shit, from all my experience with it so far. Jobs added before scheduler.start() will trigger properly, but having another view call add_job later has never successfully triggered that job. Now, it just adds the email reminder at app start (for prod app only). I left the scheduler admin view around, but put warnings that it doesn’t really work due to apscheduler.
      • I’ve been more conscious about pushing, now that I have CI set up. I batch a lot more local commits now. This will save the 2k min limit on the shared runners.
      • In setting up CI/CD on the droplet yesterday, I had accidentally removed the public key in /home/bmahlstedt/.ssh/authorized_keys (the one that corresponds to my private .ssh/digitalocean). I added it back (/root/.ssh still had it), and I could ssh again.
      • In moving source checkouts over from github to gitlab, I lost all the backups (they aren’t tracked in vcs). This is fine, I have a new one with all the current data.
      • Changed the matchups template to use picks_open as well.
      • Added cards to the messages above each view’s table. Styled better.
      • Added the roles table, create admin, added myself. Updated all views to use this properly. https://gitlab.com/bmahlstedt/supercontest/issues/115.
      • First MR, ticket closure, master kickoff, deploy; all that ci/cd went well in gitlab.
      • Wednesday deployment, changed banner.
      • Quick bugfix with picks: https://gitlab.com/bmahlstedt/supercontest/issues/117.
    • Sentry:
      • List of importable integrations: https://github.com/getsentry/sentry-python/tree/master/sentry_sdk/integrations.
      • Added sqlalchemy.
      • You can’t add the gitlab integration for sentry unless your project is in a group (not owned by single user) – https://github.com/getsentry/sentry-plugins/issues/458.
      • Changed sentry to only run in prod mode, so the local dev instance doesn’t eat up my sentry monthly event limit.
      • The uncaught “AnonymousUserMixin object has no attribute id” errors were from queries.is_user_in_league in the url_value_preprocessor. I protected that with if current_user.is_authenticated, so we shouldn’t see those anymore.
        • Protected all other current_user calls too (FMD’s get_current_user_email, etc).
        • Note for future apps: if you’re ever calling current_user outside of a view or other function where the user is guaranteed to be logged in (protected by @login_required or such), you should condition the current_user object on is_authenticated.
      • Left the email notifications for every exception ON. I don’t anticipate spam, now that the AnonymousUserMixin error is fixed.
    • Flask debug toolbar changed its default to disable the profiler. I re-enabled it.
    • Lol not the biggest jon jones fan but completely agree with this: https://www.reddit.com/r/MMA/comments/df49ql/jon_jones_to_izzy_im_not_out_here_searching_for/. Izzy is annoying.
    • Created an radnet account to access my MRI results.
      • https://myradiologyconnectportal.com/Exam.
      • Bad: “There are mild degenerative changes of the coronoid process.”
      • Good: “There are no areas of abnormal signal involving the trochlea or capitellum. There are no areas of abnormal signal involving the radial head. The radial collateral ligament and attachment of the common extensor tendon and ulnar collateral ligament and attachment of the common flexor tendons are normal. There is no triceps or biceps tendon tear. There are no soft tissue masses. No ulnar nerve lesion is identified.
    • You can make waiver claims on tuesday night for ff. I had thought that it was wednesday all season so far.
    • Ortho appointment in Van Nuys. Basically just said it’s ok, go to PT. 10 appointments concluded with 0 treatment.
    • Picked up DL from Brews Brothers after.
    • Ate lunch at Dave’s Hot Chicken in NoHo. It was amazing. First time I’ve been impressed with outside food in a long time. 20min wait around noon.
    • Loving Terry Reid’s music. Always liked seed of memory, but had never heard faith to arise or any of the others. Unfortunately, that whole album isn’t on spotify. He sounds a lot like Robert Plant, and the music is chill.
    • pylint no-else-return has always been a dumb rule. Flow is so much more clear when it’s explicit about the else.
    • I’ve said it many times before, but unfamiliarity is the root of most discrimination. Racism would be nearly extinct if the whole world spoke the same language. Then you could tackle the minority remainder, the heart of the problem; anger.
    • In gitlab, you don’t need to put a pound sign in the branch name! This makes command-line-git a lot easier. You still put it in the commit message though.