Commit 6e766b70 authored by PidgeyL's avatar PidgeyL
Browse files

Merge branch 'objectify' of https://github.com/CVE-Search/CVE-Search into objectify

parents e6c0f27b 42b4fb69
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -71,7 +71,8 @@ class PluginManager(metaclass=Singleton):
        for plug in self.getWebPlugins():
            try:
                page = plug.getPage(**args)
                if page and page[0]: # Make sure there is a page
                if ((page and page[0]) or # Make sure there is a page
                   (page and page[1] and page[2])): # Or data
                    plugins.append(plug)
            except Exception as e:
                print("[!] Failed to check webpage from module %s: "%(plug.getName()))
+3 −3
Original line number Diff line number Diff line
@@ -119,7 +119,7 @@ def update(minimal = False, logs = False, drop = False,
    for post in posts:
        _run_script(post)
    if indexing and newCVEs > 0:
        _run_script("db_fulltext.py -v -l%s"%newCVEs)
        _run_script({'name': 'fulltext', 'updater': "db_fulltext.py -v -l%s"%newCVEs})

    if plugins:
        plugManager = PluginManager()
@@ -127,9 +127,9 @@ def update(minimal = False, logs = False, drop = False,
        plugins = plugManager.getPlugins()
        if len(plugins) != 0:
            for plug in plugins:
                log("Starting " + plug.getName() + " plugin", **logs)
                _log("Starting " + plug.getName() + " plugin", **logs)
                message = plug.onDatabaseUpdate()
                if message: log(message)
                if message: _log(message)


if __name__ == "__main__":