fiuai-s3 0.3.9__tar.gz → 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of fiuai-s3 might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fiuai-s3
3
- Version: 0.3.9
3
+ Version: 0.4.0
4
4
  Summary: 一个支持阿里云OSS和MinIO的对象存储抽象包
5
5
  Project-URL: Homepage, https://github.com/fiuai-sz/fiuai-s3
6
6
  Project-URL: Repository, https://github.com/fiuai-sz/fiuai-s3.git
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "fiuai-s3"
7
- version = "0.3.9"
7
+ version = "0.4.0"
8
8
  description = "一个支持阿里云OSS和MinIO的对象存储抽象包"
9
9
  readme = "README.md"
10
10
  authors = [
@@ -199,8 +199,9 @@ class MinioStorage(ObjectStorage):
199
199
  object_key = self._build_doc_path(filename, auth_tenant_id, auth_company_id, doc_id)
200
200
  # 将tags转换为Tags对象
201
201
  tags_obj = Tags()
202
- for k, v in tags.items():
203
- tags_obj[k] = v
202
+ if tags:
203
+ for k, v in tags.items():
204
+ tags_obj[k] = v
204
205
 
205
206
  doc_source_from = doc_source_from if doc_source_from else DocSourceFrom.OTHER
206
207
  doc_file_type = doc_file_type if doc_file_type else DocFileType.OTHER
File without changes
File without changes
File without changes
File without changes