Skip to content

Commit

Permalink
files upload snakecase (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
Juliamg authored Jan 18, 2024
1 parent f410d10 commit aa764c7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cognite/powerops/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.80.3"
__version__ = "0.80.4"
2 changes: 1 addition & 1 deletion cognite/powerops/resync/core/cdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
Expand Down

0 comments on commit aa764c7

Please sign in to comment.