From 8926e08009ce0c076537e4c58d0394cbfe44e222 Mon Sep 17 00:00:00 2001 From: BigBodyCobain <43977454+BigBodyCobain@users.noreply.github.com> Date: Wed, 6 May 2026 02:25:10 -0600 Subject: [PATCH] Fix cached satellite propagation --- backend/services/fetchers/satellites.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/services/fetchers/satellites.py b/backend/services/fetchers/satellites.py index 9302d7c..722c5ba 100644 --- a/backend/services/fetchers/satellites.py +++ b/backend/services/fetchers/satellites.py @@ -930,7 +930,11 @@ def fetch_satellites(): now.year, now.month, now.day, now.hour, now.minute, now.second + now.microsecond / 1e6 ) - for s in all_sats: + for source_sat in all_sats: + # Keep the classified cache immutable. The render payload below + # strips orbital fields after propagation, and mutating the cached + # entry would make the next refresh unable to position satellites. + s = dict(source_sat) try: mean_motion = s.get("MEAN_MOTION") ecc = s.get("ECCENTRICITY")