vc-utils 3.0__tar.gz → 3.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vc-utils
3
- Version: 3.0
3
+ Version: 3.1
4
4
  Summary: Vulcan Coalition Python Utility Library
5
5
  Home-page: https://github.com/vulcan-coalition/vulcan-utils
6
6
  Author: Chatavut Viriyasuthee
@@ -3,7 +3,7 @@ from typing import Any, List, Optional
3
3
 
4
4
 
5
5
  class Achievement(BaseModel):
6
- title: str
7
- description: str
6
+ title: Optional[str] = None
7
+ description: Optional[str] = None
8
8
  metadata: Any = None
9
9
  files: Optional[List[str]] = None # paths to files to be uploaded
@@ -141,8 +141,10 @@ class Linkage_Application:
141
141
  opened_files = []
142
142
  try:
143
143
  data = aiohttp.FormData()
144
- data.add_field("title", achievement.title)
145
- data.add_field("description", achievement.description)
144
+ if achievement.title is not None:
145
+ data.add_field("title", achievement.title)
146
+ if achievement.description is not None:
147
+ data.add_field("description", achievement.description)
146
148
  if achievement.metadata is not None:
147
149
  data.add_field("metadata", str(achievement.metadata))
148
150
  if achievement.files:
@@ -11,7 +11,7 @@ import shutil
11
11
 
12
12
  setup(
13
13
  name="vc-utils",
14
- version="3.0",
14
+ version="3.1",
15
15
  author="Chatavut Viriyasuthee",
16
16
  author_email="chatavut@lab.ai",
17
17
  description="Vulcan Coalition Python Utility Library",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vc-utils
3
- Version: 3.0
3
+ Version: 3.1
4
4
  Summary: Vulcan Coalition Python Utility Library
5
5
  Home-page: https://github.com/vulcan-coalition/vulcan-utils
6
6
  Author: Chatavut Viriyasuthee
File without changes
File without changes
File without changes
File without changes