Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Furrior committed Mar 4, 2025
1 parent 4b03af4 commit 316b089
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/routes/v1/donate.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def get_donations(session: SessionDep,


@router.get("/{id}", status_code=status.HTTP_200_OK)
async def get_donation_by_id(session: SessionDep, id: int) -> Donation:
async def get_donation_by_id(session: SessionDep, id: int) -> Donation: # pylint: disable=redefined-builtin
return session.exec(select(Donation).where(Donation.id == id)).first()

async def create_donation_helper(session: SessionDep, donation: Donation) -> Donation:
Expand Down
2 changes: 1 addition & 1 deletion app/routes/v1/player.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import datetime
import logging

from fastapi import APIRouter, Depends, HTTPException, Request, status, BackgroundTasks
from fastapi import APIRouter, Depends, HTTPException, Request, status
from fastapi.responses import RedirectResponse
from sqlalchemy import func
from sqlmodel import Session, select
Expand Down
2 changes: 1 addition & 1 deletion app/routes/v1/whitelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async def get_whitelisted_ckeys(session: SessionDep,
page: int = 1,
page_size: int = 50) -> PaginatedResponse[str]:
selection = select(Player.ckey).join(
Whitelist, Player.id == Whitelist.player_id).where(Player.ckey != None).distinct() # type: ignore
Whitelist, Player.id == Whitelist.player_id).where(Player.ckey != None).distinct() # type: ignore # pylint: disable=singleton-comparison

selection = filter_whitelists(selection,
server_type=server_type,
Expand Down

0 comments on commit 316b089

Please sign in to comment.