Начал редактирование парсинга спутников

This commit is contained in:
2025-11-26 23:57:21 +03:00
parent d832171325
commit bd39717e86
8 changed files with 97 additions and 31 deletions

View File

@@ -139,6 +139,8 @@ class SatelliteListView(LoginRequiredMixin, View):
"-name": "-name",
"norad": "norad",
"-norad": "-norad",
"international_code": "international_code",
"-international_code": "-international_code",
"undersat_point": "undersat_point",
"-undersat_point": "-undersat_point",
"launch_date": "launch_date",
@@ -168,6 +170,7 @@ class SatelliteListView(LoginRequiredMixin, View):
'id': satellite.id,
'name': satellite.name or "-",
'norad': satellite.norad if satellite.norad else "-",
'international_code': satellite.international_code or "-",
'bands': ", ".join(band_names) if band_names else "-",
'undersat_point': f"{satellite.undersat_point:.2f}" if satellite.undersat_point is not None else "-",
'launch_date': satellite.launch_date.strftime("%d.%m.%Y") if satellite.launch_date else "-",