small adjustments

This commit is contained in:
hjoaquim
2023-09-06 13:06:20 +01:00
parent e39b7fedf2
commit 86e73691e5
2 changed files with 5 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ class PosthogHandler(logging.Handler):
"sessionId": self._settings.session_id,
"platform": self._settings.platform,
"pythonVersion": self._settings.python_version,
"terminalVersion": self._settings.terminal_version,
"obbPlatformVersion": self._settings.terminal_version,
}
if self._settings.user_id:

View File

@@ -130,7 +130,10 @@ class OBBject(GenericModel, Generic[T], Tagged):
return results
def to_chart(self, **kwargs):
"""Create or update the `Chart`.
"""
Create or update the `Chart`.
This function assumes that the provided data is a time series, if it's not, it will
most likely result in an Exception.
Note that the `chart` attribute is composed by: `content`, `format` and `fig`.