Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
anisfeld committed Mar 11, 2024
1 parent 286a73d commit 48785f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prijateli_tree/app/routers/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from fastapi import APIRouter, Depends, Form, HTTPException, Request, Response
from fastapi.responses import HTMLResponse, JSONResponse, RedirectResponse
from fastapi.templating import Jinja2Templates
from sqlalchemy.orm import Session
from sqlalchemy import desc
from sqlalchemy.orm import Session

from prijateli_tree.app.database import (
Game,
Expand Down Expand Up @@ -82,8 +82,8 @@ def choose_session_players(
) -> Response:
session = (
db.query(GameSession)
.filter_by(session_key=session_key.lower())
.order_by(desc('created_at'))
.filter_by(session_key=session_key.lower())
.order_by(desc("created_at"))
.first()
)
if session is None:
Expand Down

0 comments on commit 48785f4

Please sign in to comment.