From aa048756bc5a6b9fb6a33bdffe2a7f87856e7512 Mon Sep 17 00:00:00 2001 From: Sketch <75850871+SketchMaster2001@users.noreply.github.com> Date: Sat, 29 Jun 2024 15:33:17 -0400 Subject: [PATCH] Run black --- config-example.py | 2 +- .../versions/01a299e3292d_remove_contact_boolean_field.py | 1 + .../083122793626_add_price_code_and_reference_id_to_.py | 1 + migrations/versions/0ed7c094d1e4_some_pay_poster_stuff.py | 1 + migrations/versions/10a4bee2f951_add_giveaways_table.py | 1 + migrations/versions/24c726f82d58_separate_parade_miis.py | 1 + migrations/versions/30bb30ec6914_add_polls_table.py | 1 + .../413307c4c044_separate_mii_ids_from_room_ids.py | 1 + ...16677d220fd_allow_indexing_of_individual_identifiers.py | 1 + .../versions/8d9d8ccd6476_eradicate_category_movies.py | 1 + migrations/versions/97296e3225e2_pay_date_added.py | 1 + migrations/versions/d20c0219e18c_initial_tracking.py | 1 + ...47aeb04a99c_allow_full_text_indexing_for_movies_and_.py | 1 + migrations/versions/e6c5c826b357_add_intro_info_table.py | 1 + .../versions/ec29b09a3e38_remove_ds_dist_boolean_column.py | 1 + theunderground/__init__.py | 2 +- theunderground/votes.py | 7 +++++-- 17 files changed, 21 insertions(+), 4 deletions(-) diff --git a/config-example.py b/config-example.py index 64fe924c..cffff92f 100644 --- a/config-example.py +++ b/config-example.py @@ -43,4 +43,4 @@ "redirect_uris": [oidc_redirect_uri], } } -oidc_logout_url = "" \ No newline at end of file +oidc_logout_url = "" diff --git a/migrations/versions/01a299e3292d_remove_contact_boolean_field.py b/migrations/versions/01a299e3292d_remove_contact_boolean_field.py index 30e3c8a5..09889bef 100644 --- a/migrations/versions/01a299e3292d_remove_contact_boolean_field.py +++ b/migrations/versions/01a299e3292d_remove_contact_boolean_field.py @@ -5,6 +5,7 @@ Create Date: 2022-08-09 04:34:57.915400 """ + from alembic import op import sqlalchemy as sa diff --git a/migrations/versions/083122793626_add_price_code_and_reference_id_to_.py b/migrations/versions/083122793626_add_price_code_and_reference_id_to_.py index 5e9f8367..ffc26f57 100644 --- a/migrations/versions/083122793626_add_price_code_and_reference_id_to_.py +++ b/migrations/versions/083122793626_add_price_code_and_reference_id_to_.py @@ -5,6 +5,7 @@ Create Date: 2022-11-03 09:55:59.743479 """ + from alembic import op import sqlalchemy as sa diff --git a/migrations/versions/0ed7c094d1e4_some_pay_poster_stuff.py b/migrations/versions/0ed7c094d1e4_some_pay_poster_stuff.py index a68d2c77..c94aa493 100644 --- a/migrations/versions/0ed7c094d1e4_some_pay_poster_stuff.py +++ b/migrations/versions/0ed7c094d1e4_some_pay_poster_stuff.py @@ -5,6 +5,7 @@ Create Date: 2023-06-01 10:46:33.690363 """ + from alembic import op import sqlalchemy as sa diff --git a/migrations/versions/10a4bee2f951_add_giveaways_table.py b/migrations/versions/10a4bee2f951_add_giveaways_table.py index de239366..ba79fd26 100644 --- a/migrations/versions/10a4bee2f951_add_giveaways_table.py +++ b/migrations/versions/10a4bee2f951_add_giveaways_table.py @@ -5,6 +5,7 @@ Create Date: 2023-02-27 10:06:42.505002 """ + from alembic import op import sqlalchemy as sa diff --git a/migrations/versions/24c726f82d58_separate_parade_miis.py b/migrations/versions/24c726f82d58_separate_parade_miis.py index 3e2da481..76735778 100644 --- a/migrations/versions/24c726f82d58_separate_parade_miis.py +++ b/migrations/versions/24c726f82d58_separate_parade_miis.py @@ -5,6 +5,7 @@ Create Date: 2021-09-29 02:09:38.416634 """ + from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql diff --git a/migrations/versions/30bb30ec6914_add_polls_table.py b/migrations/versions/30bb30ec6914_add_polls_table.py index 230c5e48..d9058022 100644 --- a/migrations/versions/30bb30ec6914_add_polls_table.py +++ b/migrations/versions/30bb30ec6914_add_polls_table.py @@ -5,6 +5,7 @@ Create Date: 2021-07-12 18:17:42.903440 """ + from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql diff --git a/migrations/versions/413307c4c044_separate_mii_ids_from_room_ids.py b/migrations/versions/413307c4c044_separate_mii_ids_from_room_ids.py index 2a0894c4..62766d2b 100644 --- a/migrations/versions/413307c4c044_separate_mii_ids_from_room_ids.py +++ b/migrations/versions/413307c4c044_separate_mii_ids_from_room_ids.py @@ -5,6 +5,7 @@ Create Date: 2021-09-28 15:44:20.490928 """ + import os from alembic import op diff --git a/migrations/versions/716677d220fd_allow_indexing_of_individual_identifiers.py b/migrations/versions/716677d220fd_allow_indexing_of_individual_identifiers.py index efc9d3b6..291a444f 100644 --- a/migrations/versions/716677d220fd_allow_indexing_of_individual_identifiers.py +++ b/migrations/versions/716677d220fd_allow_indexing_of_individual_identifiers.py @@ -5,6 +5,7 @@ Create Date: 2021-08-03 00:15:26.434399 """ + from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql diff --git a/migrations/versions/8d9d8ccd6476_eradicate_category_movies.py b/migrations/versions/8d9d8ccd6476_eradicate_category_movies.py index e6304cc2..7c22b986 100644 --- a/migrations/versions/8d9d8ccd6476_eradicate_category_movies.py +++ b/migrations/versions/8d9d8ccd6476_eradicate_category_movies.py @@ -5,6 +5,7 @@ Create Date: 2021-05-17 23:58:54.685789 """ + from alembic import op import sqlalchemy as sa diff --git a/migrations/versions/97296e3225e2_pay_date_added.py b/migrations/versions/97296e3225e2_pay_date_added.py index c80c9558..3ea5c52d 100644 --- a/migrations/versions/97296e3225e2_pay_date_added.py +++ b/migrations/versions/97296e3225e2_pay_date_added.py @@ -5,6 +5,7 @@ Create Date: 2021-05-04 20:48:28.950492 """ + from alembic import op import sqlalchemy as sa diff --git a/migrations/versions/d20c0219e18c_initial_tracking.py b/migrations/versions/d20c0219e18c_initial_tracking.py index e70d5bc2..8869ab6a 100644 --- a/migrations/versions/d20c0219e18c_initial_tracking.py +++ b/migrations/versions/d20c0219e18c_initial_tracking.py @@ -5,6 +5,7 @@ Create Date: 2021-05-04 20:35:49.421200 """ + from alembic import op import models import sqlalchemy as sa diff --git a/migrations/versions/d47aeb04a99c_allow_full_text_indexing_for_movies_and_.py b/migrations/versions/d47aeb04a99c_allow_full_text_indexing_for_movies_and_.py index e439a457..86b501e0 100644 --- a/migrations/versions/d47aeb04a99c_allow_full_text_indexing_for_movies_and_.py +++ b/migrations/versions/d47aeb04a99c_allow_full_text_indexing_for_movies_and_.py @@ -5,6 +5,7 @@ Create Date: 2021-08-16 22:48:49.324882 """ + import sqlalchemy_utils from alembic import op import sqlalchemy as sa diff --git a/migrations/versions/e6c5c826b357_add_intro_info_table.py b/migrations/versions/e6c5c826b357_add_intro_info_table.py index 9d7a5fa6..5561e15b 100644 --- a/migrations/versions/e6c5c826b357_add_intro_info_table.py +++ b/migrations/versions/e6c5c826b357_add_intro_info_table.py @@ -5,6 +5,7 @@ Create Date: 2022-03-15 14:16:22.531687 """ + from alembic import op import sqlalchemy as sa diff --git a/migrations/versions/ec29b09a3e38_remove_ds_dist_boolean_column.py b/migrations/versions/ec29b09a3e38_remove_ds_dist_boolean_column.py index 9df5e2f0..8761819e 100644 --- a/migrations/versions/ec29b09a3e38_remove_ds_dist_boolean_column.py +++ b/migrations/versions/ec29b09a3e38_remove_ds_dist_boolean_column.py @@ -5,6 +5,7 @@ Create Date: 2021-05-26 00:51:00.624446 """ + from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql diff --git a/theunderground/__init__.py b/theunderground/__init__.py index d4a6447c..8e042095 100644 --- a/theunderground/__init__.py +++ b/theunderground/__init__.py @@ -13,5 +13,5 @@ room_types, room_data, pay_posters, - votes + votes, ) diff --git a/theunderground/votes.py b/theunderground/votes.py index 5b08a5b1..57223285 100644 --- a/theunderground/votes.py +++ b/theunderground/votes.py @@ -63,7 +63,7 @@ def votes_list_categories(): "blood.3": movie_blood_t3, "blood.4": movie_blood_t4, "blood.avg": 0, - "age.avg": 0 + "age.avg": 0, } return render_template( @@ -74,6 +74,7 @@ def votes_list_categories(): type_max_count=64, ) + @app.route("/theunderground/votes/c/thumbnail.jpg") def votes_get_category_thumbnail(category): if s3: @@ -81,6 +82,7 @@ def votes_get_category_thumbnail(category): return NormalCategoryAsset(category).send_file() + @app.route("/theunderground/votes/") def votes_list_movies(category): # Get our current page, or start from scratch. @@ -121,7 +123,7 @@ def votes_list_movies(category): "blood.3": 0, "blood.4": 0, "blood.avg": 0, - "age.avg": 0 + "age.avg": 0, } return render_template( @@ -133,6 +135,7 @@ def votes_list_movies(category): type_max_count=64, ) + @app.route("/theunderground/votes/m/thumbnail.jpg") def votes_get_movie_thumbnail(movie_id): movie_dir = get_movie_path(movie_id)