Skip to content
Snippets Groups Projects
Commit b1f25d0c authored by Mattia Mancini's avatar Mattia Mancini
Browse files

OSB-44: adapted the backend of the station monitor to receive and display the...

OSB-44: adapted the backend of the station monitor to receive and display the wincc statuses - renamed payload to data
parent 267b2084
No related branches found
No related tags found
2 merge requests!89Monitoring maintenance Epic branch merge,!1Resolve OSB-13 "Monitoringmaintenance "
......@@ -1185,13 +1185,13 @@ class ControllerStationComponentElementErrors(ValidableReadOnlyView):
combined = rtsm_errors_list + station_test_list
combined_and_sorted = sorted(combined, key=lambda test: test['start_date'], reverse=True)
data = OrderedDict()
data['errors'] = combined_and_sorted
payload = OrderedDict()
payload['errors'] = combined_and_sorted
data['current_status'] = WinCCAntennaStatus.objects.\
payload['current_status'] = WinCCAntennaStatus.objects.\
latest_status_per_station_and_component_type_antenna_id(self.station_name,
self.component_type,
self.antenna_id,
to_date=datetime.datetime.now())
return Response(status=status.HTTP_200_OK, data=data)
return Response(status=status.HTTP_200_OK, data=payload)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment