Начал редактирование парсинга спутников
This commit is contained in:
@@ -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 "-",
|
||||
|
||||
Reference in New Issue
Block a user