From 84092b975de48e48a8df049070136da8bb5f8df0 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Wed, 15 Sep 2021 21:37:10 +0200 Subject: [PATCH] fix: [import] redis key --- bin/import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/import.py b/bin/import.py index 4f15da0..2ba2b79 100644 --- a/bin/import.py +++ b/bin/import.py @@ -51,7 +51,7 @@ def CPEExtractor( cpe=None ): record['product'] = cpefield[4] cpeline = "" for cpeentry in cpefield[:5]: - cpeline = cpeline + ":" + cpeentry + cpeline = "{}:{}".format(cpeline, cpeentry) record['cpeline'] = cpeline[1:] return record