Skip to content

Commit

Permalink
web: adjust DB creation (#2004)
Browse files Browse the repository at this point in the history
We have regression causing projects not to be analysed. This fixes it.

Signed-off-by: DavidKorczynski <[email protected]>
  • Loading branch information
DavidKorczynski authored Jan 21, 2025
1 parent e978384 commit df99d98
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1298,9 +1298,12 @@ def reduce_projects_to_analyse(projects_to_analyse, max_projects,
if max_projects <= 0:
tmp_dictionary = dict()
for k in projects_to_analyse:
for p in must_include:
if p in k:
tmp_dictionary[k] = projects_to_analyse[k]
if must_include:
for p in must_include:
if p in k:
tmp_dictionary[k] = projects_to_analyse[k]
else:
tmp_dictionary[k] = projects_to_analyse[k]
projects_to_analyse = tmp_dictionary
elif max_projects > 0 and len(projects_to_analyse) > max_projects:
tmp_dictionary = dict()
Expand Down

0 comments on commit df99d98

Please sign in to comment.