Skip to content

Commit

Permalink
Revert mime type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
einarmo committed Nov 15, 2024
1 parent 99a01c4 commit 893373f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ Changes are grouped as follows
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

## 7.5.3

### Fixed

* Revert change in 7.5.2, the root cause is a different issue.

## 7.5.2

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion cognite/extractorutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
Cognite extractor utils is a Python package that simplifies the development of new extractors.
"""

__version__ = "7.5.2"
__version__ = "7.5.3"
from .base import Extractor
2 changes: 0 additions & 2 deletions cognite/extractorutils/uploader/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,6 @@ def _upload_empty(
diff = attr - basic_attributes

if len(diff) >= 1 and "externalId" in attr:
# Don't change the mime type, updating mime type always fails.
file_meta.mime_type = None
file_meta_response = self.cdf_client.files.update(file_meta)

return file_meta_response, url
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-extractor-utils"
version = "7.5.2"
version = "7.5.3"
description = "Utilities for easier development of extractors for CDF"
authors = ["Mathias Lohne <[email protected]>"]
license = "Apache-2.0"
Expand Down

0 comments on commit 893373f

Please sign in to comment.