fix(lint): remove unused imports and variables
All checks were successful
CI / lint (push) Successful in 8s
CI / test (push) Successful in 4s
CI / lint (pull_request) Successful in 4s
CI / test (pull_request) Successful in 5s
CI / build (push) Successful in 22s
CI / build (pull_request) Successful in 2s

This commit is contained in:
2026-05-15 17:13:44 +03:00
parent 353b4dbf10
commit 4401f77c74

View File

@@ -11,13 +11,13 @@ import os
import math
import struct
import sqlite3
import json
import itertools
from pathlib import Path
from shapely.geometry import LineString
from typing import List
from functools import lru_cache
from fastapi import FastAPI, HTTPException, Response
from fastapi.responses import FileResponse
from fastapi.staticfiles import StaticFiles
@@ -780,7 +780,7 @@ async def post_scenic(req: ScenicRequest):
if not scored_pois:
# Нет красивых мест — строим просто кольцо через ближайшие грунтовки
# Пробуем кольцо: старт → точка на расстоянии ~target_km/3 → старт
angle = 0
_ = 0
third_dist = target_km / 3.0
mid_lat = lat + (third_dist / 111.0)
mid_lon = lon
@@ -1137,7 +1137,7 @@ async def post_route(req: RouteRequest):
# Открываем БД один раз для всех маршрутов
try:
conn = get_db()
except Exception as e:
except Exception:
conn = None
routes_out = []