Example #1
0
def update_all_cve_using_files(request):
    # limiting this view to a localhost
    if not is_localhost(request):
        return HttpResponse(status=401)

    updater = NvdCveXmlUpdater()
    updater.update_all(True, True)
    return HttpResponse(status=200)
Example #2
0
def update_recent_cve(request):
    # limiting this view to a localhost
    if not is_localhost(request):
        return HttpResponse(status=401)

    updater = NvdCveXmlUpdater()
    updater.update_recent()
    return HttpResponse(status=200)