fix: Correct syntax error in HorizonsService.get_object_data_raw (string literal quotes)

main
mula.liu 2025-12-03 18:16:48 +08:00
parent f0e6e3a4fe
commit d38de785e6
1 changed files with 2 additions and 2 deletions

View File

@ -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",