.dict-fxt
Some checks failed
Deploy on push / deploy (push) Failing after 6s

This commit is contained in:
2024-02-29 10:02:29 +03:00
parent ad5b4a81c3
commit caf45f3d42
2 changed files with 9 additions and 1 deletions

View File

@@ -57,6 +57,9 @@ class Base(declarative_base()):
data[c] = json.loads(str(value))
else:
data[c] = value
# Add synthetic field .stat
if hasattr(self, 'stat'):
data['stat'] = self.stat
return data
except Exception as e:
logger.error(f'Error occurred while converting object to dictionary: {e}')