fix: apply A1/A2/A3 to the live services/ copy and ship it in the backend image

backend/routers/analyze.py imports services.* (root package), not
backend.services.* - so the earlier A1/A2/A3 edits landed in an unused
duplicate. Also COPY/mount services/ so the container can start at all
(ModuleNotFoundError: No module named services).
This commit is contained in:
root
2026-07-25 12:31:07 +00:00
parent 5a631f6553
commit 76278f5fe1
4 changed files with 15 additions and 4 deletions
+6
View File
@@ -118,6 +118,8 @@ def get_terrain_coefficient(terrain: str) -> float:
Returns:
Terrain coefficient (0.0 - 1.0)
"""
if not terrain:
return 0.5
terrain_lower = terrain.lower()
terrain_map = {
@@ -155,6 +157,8 @@ def get_time_of_day_coefficient(time_of_day: str) -> float:
Returns:
Time coefficient (0.0 - 1.0)
"""
if not time_of_day:
return 1.0
time_lower = time_of_day.lower()
if 'ночь' in time_lower:
@@ -175,6 +179,8 @@ def get_weather_coefficient(weather: str) -> float:
Returns:
Weather coefficient (0.0 - 1.0)
"""
if not weather:
return 1.0
weather_lower = weather.lower()
if 'ливень' in weather_lower or 'сильный дождь' in weather_lower: