Skip to content

Commit

Permalink
Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
noahpistilli committed Jun 29, 2024
1 parent 867bc4b commit aa04875
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config-example.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
"redirect_uris": [oidc_redirect_uri],
}
}
oidc_logout_url = ""
oidc_logout_url = ""
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-08-09 04:34:57.915400
"""

from alembic import op
import sqlalchemy as sa

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-11-03 09:55:59.743479
"""

from alembic import op
import sqlalchemy as sa

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/0ed7c094d1e4_some_pay_poster_stuff.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-06-01 10:46:33.690363
"""

from alembic import op
import sqlalchemy as sa

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/10a4bee2f951_add_giveaways_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-02-27 10:06:42.505002
"""

from alembic import op
import sqlalchemy as sa

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/24c726f82d58_separate_parade_miis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions migrations/versions/30bb30ec6914_add_polls_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-09-28 15:44:20.490928
"""

import os

from alembic import op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-05-17 23:58:54.685789
"""

from alembic import op
import sqlalchemy as sa

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/97296e3225e2_pay_date_added.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-05-04 20:48:28.950492
"""

from alembic import op
import sqlalchemy as sa

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/d20c0219e18c_initial_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-05-04 20:35:49.421200
"""

from alembic import op
import models
import sqlalchemy as sa
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-08-16 22:48:49.324882
"""

import sqlalchemy_utils
from alembic import op
import sqlalchemy as sa
Expand Down
1 change: 1 addition & 0 deletions migrations/versions/e6c5c826b357_add_intro_info_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-03-15 14:16:22.531687
"""

from alembic import op
import sqlalchemy as sa

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion theunderground/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
room_types,
room_data,
pay_posters,
votes
votes,
)
7 changes: 5 additions & 2 deletions theunderground/votes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -74,13 +74,15 @@ def votes_list_categories():
type_max_count=64,
)


@app.route("/theunderground/votes/c<category>/thumbnail.jpg")
def votes_get_category_thumbnail(category):
if s3:
return redirect(f"{config.url1_cdn_url}/list/category/img/{category}.img")

return NormalCategoryAsset(category).send_file()


@app.route("/theunderground/votes/<category>")
def votes_list_movies(category):
# Get our current page, or start from scratch.
Expand Down Expand Up @@ -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(
Expand All @@ -133,6 +135,7 @@ def votes_list_movies(category):
type_max_count=64,
)


@app.route("/theunderground/votes/m<movie_id>/thumbnail.jpg")
def votes_get_movie_thumbnail(movie_id):
movie_dir = get_movie_path(movie_id)
Expand Down

0 comments on commit aa04875

Please sign in to comment.