Commit dd6b7355 authored by PidgeyL's avatar PidgeyL
Browse files

bugfix + code clean-up

parent 8eb2ea3c
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -18,13 +18,9 @@ import urllib
_runPath = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(_runPath, ".."))

from dateutil.parser import parse      as parse_datetime

from flask import render_template, request

import lib.CVEs          as cves
import lib.DatabaseLayer as db
import lib.Query         as query
import lib.Toolkit       as tk

from lib.Config  import Configuration
@@ -120,7 +116,7 @@ class Minimal(API):

  # /cve/<cveid>
  def cve(self, cveid):
    cve = api_cve()
    cve = self.api_cve(cveid)
    if not cve:
      return render_template('error.html',status={'except':'cve-not-found','info':{'cve':cveid}},minimal=self.minimal)
    return render_template('cve.html', cve=cve, minimal=self.minimal)