module/project.py¶
module.project ¶
Project
Project ¶
Project module
Source code in module/project.py
all
staticmethod
¶
List all project
Returns:
Type | Description |
---|---|
Generator[ProjectBase, None, None]
|
Return all projects and order by |
Source code in module/project.py
create
staticmethod
¶
Create project
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pid |
str
|
Project id. |
required |
name |
str
|
Project name. |
required |
owners |
list
|
List of owner's uids. |
required |
action_date |
str
|
The date at the event first date. |
required |
Returns:
Type | Description |
---|---|
dict[str, Any]
|
Return the added data. |
Source code in module/project.py
get
staticmethod
¶
Get project info
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pid |
str
|
Project id. |
required |
Returns:
Type | Description |
---|---|
ProjectBase | None
|
Return the project info. |
Source code in module/project.py
update
staticmethod
¶
update data
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pid |
str
|
Project id. |
required |
data |
dict
|
The data to update. Can be updated fields refer to structs.projects.ProjectBaseUpdate |
required |