diff --git a/lib/mongodb.py b/lib/mongodb.py
index 68bc5f8..11b84c2 100644
--- a/lib/mongodb.py
+++ b/lib/mongodb.py
@@ -69,6 +69,8 @@ def bug_early_clean():
"""
自动清理一个月之前保存的漏洞信息
"""
+ db = conn_mongo()
+ database = db.bugdata
before_data = datetime.date.today() - relativedelta(months=+1)
early = before_data.strftime("%Y-%m-%d")
database.remove({"addtime":{"$lt":early}})
Traceback (most recent call last):
File "index.py", line 40, in <module>
seebug_monitor()
File "index.py", line 24, in seebug_monitor
seebug_crawer()
File "/Users/xx/project/bug-monitor/seebug/seebug_crawer.py", line 25, in seebug_crawer
cookie = cookie_init()
File "/Users/xx/project/bug-monitor/seebug/seebug_cookie_init.py", line 62, in cookie_init
return get_jsluid(req)
File "/Users/xx/project/bug-monitor/seebug/seebug_cookie_init.py", line 24, in get_jsluid
get_jsl_clearance(req, post_cookie)
File "/Users/xx/project/bug-monitor/seebug/seebug_cookie_init.py", line 47, in get_jsl_clearance
ctxt.eval(script)
Boost.Python.ArgumentError: Python argument types in
JSContext.eval(JSContext, unicode)
did not match C++ signature:
eval(CContext {lvalue}, std::string source, std::string name='', int line=-1, int col=-1, boost::python::api::object precompiled=None)
diff --git a/cve/__init__.py b/cve/__init__.py
index 8cc1d1b..dede444 100644
--- a/cve/__init__.py
+++ b/cve/__init__.py
@@ -1,3 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# @Author : mr.chery ([email protected])
\ No newline at end of file
+# @Author : mr.chery ([email protected])
+from cve import *
Traceback (most recent call last):
File "index.py", line 6, in <module>
from cve import *
File "/Users/xxx/project/bug-monitor/cve/__init__.py", line 4, in <module>
from cve import *
File "/Users/xxx/project/bug-monitor/cve/cve.py", line 13, in <module>
with open('../config.yaml', 'r') as f:
IOError: [Errno 2] No such file or directory: '../config.yaml'
I got interest in this project, but too many bugs, I will pull request later.