fix: [import] redis key

This commit is contained in:
Alexandre Dulaunoy 2021-09-15 21:37:10 +02:00
parent a933c6f172
commit 84092b975d
Signed by: adulau
GPG key ID: 09E2CD4944E6CBCD

View file

@ -51,7 +51,7 @@ def CPEExtractor( cpe=None ):
record['product'] = cpefield[4] record['product'] = cpefield[4]
cpeline = "" cpeline = ""
for cpeentry in cpefield[:5]: for cpeentry in cpefield[:5]:
cpeline = cpeline + ":" + cpeentry cpeline = "{}:{}".format(cpeline, cpeentry)
record['cpeline'] = cpeline[1:] record['cpeline'] = cpeline[1:]
return record return record