MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / get_project_by_id

Method get_project_by_id

src/core/database.py:1128–1136  ·  view source on GitHub ↗

Get project by UUID

(self, project_id: str)

Source from the content-addressed store, hash-verified

1126 return cursor.lastrowid
1127
1128 async def get_project_by_id(self, project_id: str) -> Optional[Project]:
1129 """Get project by UUID"""
1130 async with self._connect() as db:
1131 db.row_factory = aiosqlite.Row
1132 cursor = await db.execute("SELECT * FROM projects WHERE project_id = ?", (project_id,))
1133 row = await cursor.fetchone()
1134 if row:
1135 return Project(**dict(row))
1136 return None
1137
1138 async def get_projects_by_token(self, token_id: int) -> List[Project]:
1139 """Get all projects for a token"""

Callers

nothing calls this directly

Calls 2

_connectMethod · 0.95
ProjectClass · 0.85

Tested by

no test coverage detected