We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dd72e0 commit cbc0800Copy full SHA for cbc0800
1 file changed
src/seclab_taskflows/mcp_servers/repo_context.py
@@ -220,11 +220,13 @@ def get_apps(self, repo):
220
221
def get_app_issues(self, repo, component_id):
222
with Session(self.engine) as session:
223
- issues = session.query(Application, ApplicationIssue).filter(Application.repo == repo
224
- )
+ issues = session.query(Application, ApplicationIssue).filter(
+ Application.repo == repo,
225
+ Application.id == ApplicationIssue.component_id
226
+ )
227
if component_id is not None:
228
issues = issues.filter(Application.id == component_id)
- issues = issues.filter(Application.id == ApplicationIssue.component_id).all()
229
+ issues = issues.all()
230
return [{
231
'component_id': app.id,
232
'location' : app.location,
0 commit comments