Skip to content

Commit

Permalink
fix metric stats
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Dec 15, 2024
1 parent 641fe1b commit be7b3e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dipdup/performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def _round(value: Any) -> Any:
return round(value, 2)
return value

return {k: _round(v) for k, v in self.__dict__.items() if not k.startswith('_')}
return {k: _round(getattr(self, k)) for k in dir(self) if not k.startswith('_') and isinstance(getattr(self, k), Metric)}


caches = _CacheManager()
Expand Down

0 comments on commit be7b3e7

Please sign in to comment.