Skip to content

Commit

Permalink
fix project info dto
Browse files Browse the repository at this point in the history
  • Loading branch information
prabinoid committed Oct 16, 2024
1 parent ea4a4b7 commit 61766ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 5 additions & 7 deletions backend/models/dtos/project_dto.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,12 @@ class ProjectInfoDTO(BaseModel):
"""Contains the localized project info"""

locale: str
name: Optional[str] = "" # Optional, with default as empty string
short_description: Optional[str] = Field(
default="", serialization_alias="shortDescription"
) # Optional, with default as empty string
description: Optional[str] = "" # Optional, with default as empty string
instructions: Optional[str] = "" # Optional, with default as empty string
name: Optional[str] = ""
short_description: Optional[str] = Field(default="", alias="shortDescription")
description: Optional[str] = ""
instructions: Optional[str] = ""
per_task_instructions: Optional[str] = Field(
default="", serialization_alias="perTaskInstructions"
default="", alias="perTaskInstructions"
)

class Config:
Expand Down
2 changes: 2 additions & 0 deletions backend/services/validator_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,12 +476,14 @@ async def validate_all_tasks(project_id: int, user_id: int, db: Database):
UPDATE tasks
SET mapped_by = :mapped_by
WHERE id = :task_id
AND project_id = :project_id
"""
await db.execute(
query=update_mapped_by_query,
values={
"mapped_by": mapped_by,
"task_id": task_id,
"project_id": project_id,
},
)

Expand Down

0 comments on commit 61766ac

Please sign in to comment.