From d38de785e64e3ea2d4535d285fb08fb92869d265 Mon Sep 17 00:00:00 2001 From: "mula.liu" Date: Wed, 3 Dec 2025 18:16:48 +0800 Subject: [PATCH] fix: Correct syntax error in HorizonsService.get_object_data_raw (string literal quotes) --- backend/app/services/horizons.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/services/horizons.py b/backend/app/services/horizons.py index f73dc0c..d414655 100644 --- a/backend/app/services/horizons.py +++ b/backend/app/services/horizons.py @@ -34,7 +34,7 @@ class HorizonsService: """ url = "https://ssd.jpl.nasa.gov/api/horizons.api" # Ensure ID is quoted for COMMAND - cmd_val = f"'{body_id}'" if not body_id.startswith("'"') else body_id + cmd_val = f"'{body_id}'" if not body_id.startswith("'") else body_id params = { "format": "text", @@ -113,7 +113,7 @@ class HorizonsService: logger.info(f"Querying Horizons (httpx) for body {body_id} from {start_str} to {end_str}") url = "https://ssd.jpl.nasa.gov/api/horizons.api" - cmd_val = f"'{body_id}'" if not body_id.startswith("'"') else body_id + cmd_val = f"'{body_id}'" if not body_id.startswith("'") else body_id params = { "format": "text",