diff --git a/.gitattributes b/.gitattributes index 0719597579620e8fb538105d3724424a26eacbfd..f8c79e2ac4369c3572bbfa6ad35a54f6b8953ccd 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1818,7 +1818,6 @@ LCU/Maintenance/DBInterface/monitoringdb/serializers/component.py -text LCU/Maintenance/DBInterface/monitoringdb/serializers/component_error.py -text LCU/Maintenance/DBInterface/monitoringdb/serializers/element.py -text LCU/Maintenance/DBInterface/monitoringdb/serializers/element_error.py -text -LCU/Maintenance/DBInterface/monitoringdb/serializers/error_details.py -text LCU/Maintenance/DBInterface/monitoringdb/serializers/rtsm.py -text LCU/Maintenance/DBInterface/monitoringdb/serializers/station.py -text LCU/Maintenance/DBInterface/monitoringdb/serializers/station_tests.py -text diff --git a/LCU/Maintenance/DBInterface/monitoringdb/serializers/error_details.py b/LCU/Maintenance/DBInterface/monitoringdb/serializers/error_details.py deleted file mode 100644 index e1a8af9ee7903d1325eab08707ca169f6ead7d01..0000000000000000000000000000000000000000 --- a/LCU/Maintenance/DBInterface/monitoringdb/serializers/error_details.py +++ /dev/null @@ -1,16 +0,0 @@ -from rest_framework.serializers import ModelSerializer -from ..models.error_details import ErrorDetails - -class ErrorDetailsSerializer(ModelSerializer): - class Meta: - model = ErrorDetails - fields = '__all__' - - def to_representation(self, instance): - result = super().to_representation(instance) - - result = {key: value - for key, value in - filter(lambda item: item[1] is not None, result.items())} - - return result \ No newline at end of file