|
@@ -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)
|
|
|
|