Commit 74fcf3e9 authored by PidgeyL's avatar PidgeyL
Browse files

cleaning-up and bugfixes

parent 11f63577
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -50,7 +50,6 @@ class last:
        e = db.getCAPECFor(cweid)
        capec = []
        for f in e:
            f.pop('_id')
            capec.append(f)
        return capec

@@ -114,7 +113,6 @@ class last:
                    impactCVSS =impactScore(e)
                    e['exploitCVSS']=(math.ceil(exploitCVSS*10)/10) if type(exploitCVSS) is not str else exploitCVSS
                    e['impactCVSS']=(math.ceil(impactCVSS*10)/10) if type(impactCVSS) is not str else impactCVSS
                e.pop('_id')
        else:
            e = None

@@ -168,7 +166,6 @@ class last:
                if "cwe" in item and self.capeclookup:
                    if item['cwe'].lower() != 'unknown':
                        item['capec'] = self.getcapec(cweid=(item['cwe'].split('-')[1]))
                item.pop('_id')
                entries.append(item)

        return (entries)