Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
nofurtherinformation committed Oct 9, 2024
1 parent 746955e commit a00b9d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
Create Date: 2024-09-09 13:34:59.347083
"""

from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = '09d011c1b387'
down_revision: Union[str, None] = '8437ce954087'
revision: str = "09d011c1b387"
down_revision: Union[str, None] = "8437ce954087"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None

Expand Down
4 changes: 3 additions & 1 deletion backend/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ async def get_document(document_id: str, session: Session = Depends(get_session)
async def get_total_population(
document_id: str, session: Session = Depends(get_session)
):
stmt = text("SELECT * from get_total_population(:document_id) WHERE zone IS NOT NULL")
stmt = text(
"SELECT * from get_total_population(:document_id) WHERE zone IS NOT NULL"
)
try:
result = session.execute(stmt, {"document_id": document_id})
return [
Expand Down

0 comments on commit a00b9d3

Please sign in to comment.