Skip to content

Commit

Permalink
server: cosmetics, lint and default vulnsearch filter
Browse files Browse the repository at this point in the history
  • Loading branch information
bodik committed Nov 13, 2023
1 parent ee12e57 commit 145dc06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion sner/server/app.py
Expand Up @@ -68,7 +68,9 @@
'SNER_TRIM_NOTE_LIST_DATA': 4096,
'SNER_VULNSEARCH_NAMELEN': 100,
'SNER_VULNSEARCH_REBUILD_BUFLEN': 1000,
'SNER_VULNSEARCH_LIST_FILTERS': {},
'SNER_VULNSEARCH_LIST_FILTERS': {
'has_exploit': 'Vulnsearch.data astext_ilike "%exploit-db%"'
},
'SNER_ELASTICSTORAGE_REBUILD_BUFLEN': 100,
'SNER_VULN_GROUP_IGNORE_TAG_PREFIX': "i:",
'SNER_AUTOCOMPLETE_LIMIT': 10,
Expand Down
2 changes: 1 addition & 1 deletion sner/server/storage/vulnsearch.py
Expand Up @@ -12,7 +12,7 @@
import requests
from cpe import CPE
from flask import current_app
from sqlalchemy import func, inspect, select
from sqlalchemy import func, inspect
from sqlalchemy.dialects.postgresql import ARRAY, CIDR, insert as pg_insert

from sner.server.extensions import db
Expand Down

0 comments on commit 145dc06

Please sign in to comment.