File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/seclab_taskflows/mcp_servers Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments