File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -152,8 +152,20 @@ def bug_suggestions_line(
152
152
continue
153
153
if term not in term_cache :
154
154
term_cache [term ] = Bugscache .search (term )
155
- bugs ['open_recent' ].extend (term_cache [term ]['open_recent' ])
156
- bugs ['all_others' ].extend (term_cache [term ]['all_others' ])
155
+ bugs ['open_recent' ].extend (
156
+ [
157
+ bug_to_check
158
+ for bug_to_check in term_cache [term ]['open_recent' ]
159
+ if bug_to_check ['id' ] not in [bug ['id' ] for bug in bugs ['open_recent' ]]
160
+ ]
161
+ )
162
+ bugs ['all_others' ].extend (
163
+ [
164
+ bug_to_check
165
+ for bug_to_check in term_cache [term ]['all_others' ]
166
+ if bug_to_check ['id' ] not in [bug ['id' ] for bug in bugs ['all_others' ]]
167
+ ]
168
+ )
157
169
158
170
if not bugs or not (bugs ['open_recent' ] or bugs ['all_others' ]):
159
171
# no suggestions, try to use
You can’t perform that action at this time.
0 commit comments