fix(lint): remove unused imports and variables
All checks were successful
All checks were successful
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user