Skip to content

Commit

Permalink
Fix vulnerable flag
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Aug 7, 2024
1 parent d355661 commit 6e41467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repology_webapp/src/views/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub async fn api_v1_project(
coalesce(maintainers, '{}'::text[]) AS maintainers,
coalesce(licenses, '{}'::text[]) AS licenses,
CASE WHEN category IS NULL THEN '{}'::text[] ELSE ARRAY[category] END AS categories,
NULL AS vulnerable
NULLIF((flags & (1 << 16))::boolean, false) AS vulnerable
FROM packages
WHERE effname = $1
"#,
Expand Down

0 comments on commit 6e41467

Please sign in to comment.