feat: added tags for cards, aligned status headers

This commit is contained in:
2025-03-09 19:30:52 +04:00
parent 487174c4ff
commit 6030591e3c
17 changed files with 375 additions and 23 deletions

View File

@@ -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)