Skip to content

Commit

Permalink
Merge pull request #99 from questionlp/develop
Browse files Browse the repository at this point in the history
Correct DB ID/pronouns badge ordering for hosts and panelists, Bump ruff version
  • Loading branch information
questionlp authored Jan 18, 2025
2 parents 3649921 + e42ce95 commit a63f164
Show file tree
Hide file tree
Showing 32 changed files with 42 additions and 4 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changes

## 6.3.1

### Application Changes

- Change the ordering of database ID and pronoun badges for hosts and panelists to match the correct ordering used for scorekeepers

### Development Changes

- Upgrade ruff from 0.7.4 to 0.9.2

## 6.3.0

### Application Changes
Expand Down
1 change: 1 addition & 0 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Core Application for Wait Wait Stats Page."""

from flask import Flask
from wwdtm import VERSION as WWDTM_VERSION

Expand Down
1 change: 1 addition & 0 deletions app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Configuration Loading and Parsing for Wait Wait Stats Page."""

import json
from pathlib import Path
from typing import Any
Expand Down
1 change: 1 addition & 0 deletions app/dicts.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Dictionary objects used by the Wait Wait Stats Page."""

import mysql.connector

PANELIST_RANKS: dict[str, str] = {
Expand Down
1 change: 1 addition & 0 deletions app/errors/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Error Handlers Module for Wait Wait Stats Page."""

from typing import Literal

from flask import render_template
Expand Down
1 change: 1 addition & 0 deletions app/guests/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Guests Routes for Wait Wait Stats Page."""

import mysql.connector
from flask import Blueprint, Response, current_app, redirect, render_template, url_for
from slugify import slugify
Expand Down
1 change: 1 addition & 0 deletions app/hosts/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Hosts Routes for Wait Wait Stats Page."""

import mysql.connector
from flask import Blueprint, Response, current_app, redirect, render_template, url_for
from slugify import slugify
Expand Down
2 changes: 1 addition & 1 deletion app/hosts/templates/hosts/details.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ <h3 class="name">

<div class="details">
<div class="badges">
<span class="badge db-id">DB ID: {{ host.id }}</span>
{% if host.pronouns %}
<span class="badge pronouns">Pronouns: {{ host.pronouns|join("/")}}</span>
{% endif %}
<span class="badge db-id">DB ID: {{ host.id }}</span>
</div>

<div class="row">
Expand Down
1 change: 1 addition & 0 deletions app/locations/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Locations Routes for Wait Wait Stats Page."""

import mysql.connector
from flask import Blueprint, Response, current_app, render_template, url_for
from slugify import slugify
Expand Down
1 change: 1 addition & 0 deletions app/locations/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Location name formatting functions used by the Stats Page."""

from decimal import Decimal
from math import copysign, floor

Expand Down
1 change: 1 addition & 0 deletions app/main/redirects.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Main Redirect Routes for Wait Wait Stats Page."""

from datetime import datetime

import mysql.connector
Expand Down
1 change: 1 addition & 0 deletions app/main/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Main Routes for Wait Wait Stats Page."""

from pathlib import Path

import mysql.connector
Expand Down
1 change: 1 addition & 0 deletions app/panelists/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Panelists Routes for Wait Wait Stats Page."""

import mysql.connector
from flask import Blueprint, Response, current_app, redirect, render_template, url_for
from slugify import slugify
Expand Down
2 changes: 1 addition & 1 deletion app/panelists/templates/panelists/details.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<h3 class="name"><a href="{{ url_for('panelists.details', panelist_slug=panelist.slug) }}">{{ panelist.name }}</a></h3>
<div class="details">
<div class="badges">
<span class="badge db-id">DB ID: {{ panelist.id }}</span>
{% if panelist.pronouns %}
<span class="badge pronouns">Pronouns: {{ panelist.pronouns|join("/")}}</span>
{% endif %}
<span class="badge db-id">DB ID: {{ panelist.id }}</span>
</div>

<div class="row">
Expand Down
1 change: 1 addition & 0 deletions app/scorekeepers/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Scorekeepers Routes for Wait Wait Stats Page."""

import mysql.connector
from flask import Blueprint, Response, current_app, redirect, render_template, url_for
from slugify import slugify
Expand Down
1 change: 1 addition & 0 deletions app/shows/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Shows Routes for Wait Wait Stats Page."""

import datetime
from datetime import date
from typing import Any
Expand Down
1 change: 1 addition & 0 deletions app/sitemaps/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Sitemap Routes for Wait Wait Stats Page."""

import mysql.connector
from flask import Blueprint, Response, current_app, render_template
from wwdtm.guest import Guest
Expand Down
1 change: 1 addition & 0 deletions app/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Utility functions used by the Wait Wait Stats Page."""

import json
from datetime import datetime

Expand Down
3 changes: 2 additions & 1 deletion app/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Application Version for Wait Wait Stats Page."""
APP_VERSION = "6.3.0"

APP_VERSION = "6.3.1"
1 change: 1 addition & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""pytest conftest.py File."""

import pytest

from app import create_app
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ruff==0.7.4
ruff==0.9.2
black==24.10.0
pytest==8.3.3
pytest-cov==5.0.0
Expand Down
1 change: 1 addition & 0 deletions stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Application Bootstrap Script for Wait Wait Stats Page."""

from app import create_app

app = create_app()
Expand Down
1 change: 1 addition & 0 deletions tests/test_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Testing Errors Module and Blueprint Views."""

from flask.testing import FlaskClient
from werkzeug.test import TestResponse

Expand Down
1 change: 1 addition & 0 deletions tests/test_guests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Testing Guests Module and Blueprint Views."""

import pytest
from flask.testing import FlaskClient
from slugify import slugify
Expand Down
1 change: 1 addition & 0 deletions tests/test_hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Testing Hosts Module and Blueprint Views."""

import pytest
from flask.testing import FlaskClient
from slugify import slugify
Expand Down
1 change: 1 addition & 0 deletions tests/test_locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Testing Locations Module and Blueprint Views."""

import pytest
from flask.testing import FlaskClient
from werkzeug.test import TestResponse
Expand Down
1 change: 1 addition & 0 deletions tests/test_main_redirects.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Testing Main Redirects Module and Blueprint Views."""

import pytest
from flask.testing import FlaskClient
from werkzeug.test import TestResponse
Expand Down
1 change: 1 addition & 0 deletions tests/test_main_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Testing Main Routes Module and Blueprint Views."""

from flask.testing import FlaskClient
from werkzeug.test import TestResponse

Expand Down
1 change: 1 addition & 0 deletions tests/test_panelists.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Testing Panelists Module and Blueprint Views."""

import pytest
from flask.testing import FlaskClient
from slugify import slugify
Expand Down
1 change: 1 addition & 0 deletions tests/test_scorekeepers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Testing Scorekeepers Module and Blueprint Views."""

import pytest
from flask.testing import FlaskClient
from slugify import slugify
Expand Down
1 change: 1 addition & 0 deletions tests/test_shows.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Testing Shows Module and Blueprint Views."""

import pytest
from flask.testing import FlaskClient
from werkzeug.test import TestResponse
Expand Down
1 change: 1 addition & 0 deletions tests/test_sitemaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# vim: set noai syntax=python ts=4 sw=4:
"""Testing Sitemaps Module and Blueprint Views."""

from flask.testing import FlaskClient
from werkzeug.test import TestResponse

Expand Down

0 comments on commit a63f164

Please sign in to comment.