mirror of
https://github.com/cve-search/cpe-guesser.git
synced 2024-11-24 15:57:22 +00:00
new: [data] ranked set by cpe name
This commit is contained in:
parent
6baaad6f82
commit
109466e062
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ def insert( word=None, cpe=None):
|
|||
return False
|
||||
rdb.sadd('w:{}'.format(word), cpe)
|
||||
rdb.zadd('s:{}'.format(word), {cpe: 1}, incr=True)
|
||||
rdb.zadd('rank:cpe', {cpe: 1}, incr=True)
|
||||
|
||||
cpe_path = '../data/official-cpe-dictionary_v2.3.xml'
|
||||
|
||||
|
|
Loading…
Reference in a new issue