Skip to content

Commit cbc0800

Browse files
m-y-moCopilot
andauthored
Update src/seclab_taskflows/mcp_servers/repo_context.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 0dd72e0 commit cbc0800

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/seclab_taskflows/mcp_servers/repo_context.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,13 @@ def get_apps(self, repo):
220220

221221
def get_app_issues(self, repo, component_id):
222222
with Session(self.engine) as session:
223-
issues = session.query(Application, ApplicationIssue).filter(Application.repo == repo
224-
)
223+
issues = session.query(Application, ApplicationIssue).filter(
224+
Application.repo == repo,
225+
Application.id == ApplicationIssue.component_id
226+
)
225227
if component_id is not None:
226228
issues = issues.filter(Application.id == component_id)
227-
issues = issues.filter(Application.id == ApplicationIssue.component_id).all()
229+
issues = issues.all()
228230
return [{
229231
'component_id': app.id,
230232
'location' : app.location,

0 commit comments

Comments
 (0)