diff --git a/apps/wpm/serializers.py b/apps/wpm/serializers.py index 920af3e0..1688a6c9 100644 --- a/apps/wpm/serializers.py +++ b/apps/wpm/serializers.py @@ -140,7 +140,7 @@ class SfLogSerializer(CustomModelSerializer): def to_representation(self, instance): ret = super().to_representation(instance) if "shut_sec" in ret: - ret["shut_sec"] = "{:.2f}".format(round(ret['run_sec']/3600, 2)) + ret["shut_hour"] = "{:.2f}".format(round(ret['shut_sec']/3600, 2)) return ret # def to_internal_value(self, data): # if hasattr(self.Meta, 'update_fields') and self.context['request'].method in ['PUT', 'PATCH']: