Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 29, 2024
1 parent 5cfd40c commit 7bfbe6c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ussr/app/api/score_sub.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from typing import Union

import app.state
import app.usecases
import app.usecases.whitelist
import app.utils
import logger
Expand Down Expand Up @@ -239,10 +238,9 @@ async def submit_score(
):
# Separated from the previous clause to only call the pp cap function
# when necessary.
if (
not await app.usecases.verified.get_verified(user.id)
and not await app.usecases.whitelist.is_whitelisted(user.id)
):
if not await app.usecases.verified.get_verified(
user.id,
) and not await app.usecases.whitelist.is_whitelisted(user.id):
await restrict_user(
user,
f"Surpassing PP cap as unverified!",
Expand Down

0 comments on commit 7bfbe6c

Please sign in to comment.