Germano Cavalcante commited on
Commit
a1fe5df
1 Parent(s): 74e0256

Fix: Find Related showing closed issues as oppened

Browse files
routers/rag/embeddings_issues.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:56acee36b5681cebd9cbd9965e1340902e2720b26db11039894f67fbc77f9f48
3
- size 736153679
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d37f3f9825cd12557fd704bf8f240d1a35346a3f392c1e950604558d23544817
3
+ size 736163963
routers/tool_find_related.py CHANGED
@@ -178,10 +178,8 @@ class _Data(dict):
178
 
179
  for i, issue in enumerate(issues):
180
  number = int(issue['number'])
181
- if issue['state'] == 'open':
182
- self[repo]['opened'][number] = True
183
- if issue['state'] == 'closed':
184
- self[repo]['closed'][number] = True
185
 
186
  title_old = self[repo]['titles'][number]
187
  if title_old != issue['title']:
 
178
 
179
  for i, issue in enumerate(issues):
180
  number = int(issue['number'])
181
+ self[repo]['opened'][number] = issue['state'] == 'open'
182
+ self[repo]['closed'][number] = issue['state'] == 'closed'
 
 
183
 
184
  title_old = self[repo]['titles'][number]
185
  if title_old != issue['title']: