feat: added tags for cards, aligned status headers
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
from datetime import datetime
|
||||
from typing import Optional
|
||||
|
||||
from sqlalchemy import select, update, func, delete
|
||||
from sqlalchemy.orm import selectinload
|
||||
|
||||
from card_attributes import CardAttributesCommandHandler
|
||||
from models import Project, Board, Module, Attribute
|
||||
from models import Project, Board, Module
|
||||
from schemas.project import *
|
||||
from services.base import BaseService
|
||||
|
||||
@@ -30,6 +29,7 @@ class ProjectService(BaseService):
|
||||
selectinload(Project.attributes),
|
||||
selectinload(Project.modules),
|
||||
)
|
||||
.where(Project.is_deleted == False)
|
||||
.order_by(Project.id)
|
||||
)
|
||||
project_data = (await self.session.execute(stmt)).all()
|
||||
@@ -42,6 +42,7 @@ class ProjectService(BaseService):
|
||||
boards_count=boards_count,
|
||||
attributes=project.attributes,
|
||||
modules=project.modules,
|
||||
tags=project.tags,
|
||||
)
|
||||
projects.append(project_schema)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user