提交
This commit is contained in:
1 parent
c137b46939
commit
b6c63591ea
126 files changed
+41593
-22990
No files matched your search
@@ -164,7 +164,7 @@ async def get_collection_protocol_detail(
|
||||
class ProtocolCreateBody(BaseModel):
|
||||
model_config = ConfigDict(populate_by_name=True)
|
||||
|
||||
protocol_no: str = Field(..., alias="protocolNo")
|
||||
protocol_no: Optional[str] = Field(None, alias="protocolNo")
|
||||
protocol_no_id: Optional[str] = Field(None, alias="protocolNoId")
|
||||
protocol_status: str = Field("dsx", alias="protocolStatus")
|
||||
protocol_attachments: Optional[str] = Field(None, alias="protocolAttachments")
|
||||
@@ -266,7 +266,7 @@ async def create_collection_protocol(
|
||||
)
|
||||
obj = cp_svc.create_collection_protocol(
|
||||
db,
|
||||
protocol_no=body.protocol_no,
|
||||
protocol_no=body.protocol_no or "",
|
||||
protocol_no_id=body.protocol_no_id,
|
||||
protocol_status=body.protocol_status,
|
||||
protocol_attachments=protocol_attachments,
|
||||
|
||||
Reference in new issue
Block a user