From 9da0d049e2eabfa55da6e584eaa81a6f489c3869 Mon Sep 17 00:00:00 2001 From: SamirPS Date: Thu, 11 Jul 2024 11:30:27 +0200 Subject: [PATCH] Change return object This commit permit to always return a json file for the json representation --- stancer/core/abstract_object.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stancer/core/abstract_object.py b/stancer/core/abstract_object.py index d79d8dc..9652615 100644 --- a/stancer/core/abstract_object.py +++ b/stancer/core/abstract_object.py @@ -484,7 +484,7 @@ def to_json_repr(self) -> dict: representation = {} if self.id is not None and self.is_not_modified: - representation = self.id + representation = self._data else: items = { k: v