diff --git a/CHANGELOG.md b/CHANGELOG.md index 31ec81235..6ef1441ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,10 @@ Changes are grouped as follows - `Fixed` for any bug fixes. - `Security` in case of vulnerabilities. +## [0.80.4] - 2024-01-17 +### Fixed +* Bugfix with using camelcase that caused files creation to fail + ## [0.80.3] - 2024-01-11 ### Fixed * Script that generates new time series mapping config with the new transformations diff --git a/cognite/powerops/_version.py b/cognite/powerops/_version.py index 0281caba9..14f6d7ad9 100644 --- a/cognite/powerops/_version.py +++ b/cognite/powerops/_version.py @@ -1 +1 @@ -__version__ = "0.80.3" +__version__ = "0.80.4" diff --git a/cognite/powerops/resync/core/cdf.py b/cognite/powerops/resync/core/cdf.py index bee7faca2..608ddb3cb 100644 --- a/cognite/powerops/resync/core/cdf.py +++ b/cognite/powerops/resync/core/cdf.py @@ -57,7 +57,7 @@ def create(self, items: FileMetadata | Sequence[FileMetadata]) -> Any: content = self.files_by_id[item.external_id].content if content is None: raise ValueError(f"Cannot create new file {item.external_id} missing file content") - self.client.files.upload_bytes(content, **item.dump(), overwrite=True) + self.client.files.upload_bytes(content, **item.dump(camel_case=False), overwrite=True) def delete(self, external_id: str | Sequence[str]) -> Any: self.client.files.delete(external_id=external_id) diff --git a/pyproject.toml b/pyproject.toml index c77253397..b90c507c8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cognite-power-ops" -version = "0.80.3" +version = "0.80.4" description = "SDK for power markets operations on Cognite Data Fusion" readme = "README.md" authors = ["Cognite "]