浏览代码

several additions

Nikolaos Alexopoulos 6 年之前
父节点
当前提交
6f72449b16

+ 1 - 1
plot_functions.py

@@ -251,4 +251,4 @@ def plot_all(src2month, src2sloccount, pkg_with_cvss):
     
     # consider severity (low, medium, high, undefined)
     # Undefined is usual for newly added packages
-    myplotter.plot_all_severity(False,False,True,False)
+    myplotter.plot_all_severity(True,True,True,True)

二进制
vendors/debian/DLA_sum.txt


+ 5 - 1
vendors/debian/DLAmine.py

@@ -1,5 +1,5 @@
 #!/usr/bin/python3
-from .DebianAdvisory import DebianAdvisory as da
+from DebianAdvisory import DebianAdvisory as da
 import re
 import datetime
 from html.parser import HTMLParser
@@ -9,6 +9,7 @@ from pymongo import MongoClient
 import urllib.request
 import logging, sys
 import pickle
+import json
 
 
 def getDLAs():
@@ -66,6 +67,9 @@ def getDLAs():
 
     with open("DLA_sum.txt","wb") as fp:
         pickle.dump(totalDLAsList,fp)
+    
+    with open("src2month_DLA.txt","w") as fp:
+        json.dump(src2monthDLAs,fp)
 
     return(totalDLAsList)
 

文件差异内容过多而无法显示
+ 0 - 0
vendors/debian/cache/dsa2cve


文件差异内容过多而无法显示
+ 0 - 0
vendors/debian/cache/dsatable


文件差异内容过多而无法显示
+ 0 - 0
vendors/debian/cache/src2dsa


+ 1 - 1
vendors/debian/cache/state

@@ -1 +1 @@
-{"cache_dir": "cache/", "vendor": "debian", "next_adv": 4323, "next_fsa": 0, "Packages": "", "Sources": "", "Sha1Sums": ""}
+{"cache_dir": "cache/", "vendor": "debian", "next_adv": 4324, "next_fsa": 0, "Packages": "", "Sources": "", "Sha1Sums": ""}

文件差异内容过多而无法显示
+ 0 - 0
vendors/debian/src2month_DLA.txt


部分文件因为文件数量过多而无法显示