Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions api/core/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,8 @@ async def _validate_token_uncached(

# workspace roles from OSM DB
result = await osm_db_session.execute(
text(
"SELECT workspace_id, role FROM user_workspace_roles \
WHERE user_auth_uid = :auth_uid"
),
text("SELECT workspace_id, role FROM user_workspace_roles \
WHERE user_auth_uid = :auth_uid"),
{"auth_uid": str(r.user_uuid)},
)
workspaceRoles = list(result.mappings().all())
Expand Down
6 changes: 2 additions & 4 deletions api/src/osm/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ async def getWorkspaceBBox(
text(f"SET search_path TO 'workspace-{int(workspace_id)}', public")
)

sql_query = text(
"select MAX(latitude) AS max_lat, MAX(longitude) AS max_lon, \
MIN(latitude) AS min_lat, MIN(longitude) AS min_lon from nodes"
)
sql_query = text("select MAX(latitude) AS max_lat, MAX(longitude) AS max_lon, \
MIN(latitude) AS min_lat, MIN(longitude) AS min_lon from nodes")

result = await self.session.execute(sql_query)
retVal = result.mappings().first()
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ dependencies = [
"bcrypt==4.0.1",
"passlib==1.7.4",
"pydantic[email]>=2.5.2",
"pytest>=8.0.0",
"pytest>=9.0.3",
"pytest-asyncio>=0.23.5",
"httpx>=0.27.0",
"pytest-cov>=4.1.0",
"black>=24.1.0",
"black>=26.3.1",
"isort>=5.13.0",
"pre-commit>=4.0.1",
"autoflake>=2.3.1",
Expand Down
Loading
Loading