Skip to content

Commit

Permalink
different solution to fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RoccovanAsselt committed Oct 20, 2020
1 parent ebd0956 commit 0b8f717
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/DatabaseLayer.py
Expand Up @@ -433,7 +433,7 @@ def getCWEs(cweid=None):
if cweid is None:
return sanitize(sorted(colCWE.find(), key=lambda k: int(k["id"])))
else:
return sanitize(colCWE.find_one({"id": str(cweid)}))
return sanitize(colCWE.find_one({"id": cweid}))


def getInfo(collection):
Expand Down
2 changes: 1 addition & 1 deletion web/api.py
Expand Up @@ -85,7 +85,7 @@ def __init__(self):
{"r": "/api/cvefor/<path:cpe>/<limit>", "m": ["GET"], "f": self.api_cvesFor},
{"r": "/api/cve/<cveid>", "m": ["GET"], "f": self.api_cve},
{"r": "/api/cwe", "m": ["GET"], "f": self.api_cwe},
{"r": "/api/cwe/<int:cwe_id>", "m": ["GET"], "f": self.api_cwe},
{"r": "/api/cwe/<cwe_id>", "m": ["GET"], "f": self.api_cwe},
{"r": "/api/capec/<cweid>", "m": ["GET"], "f": self.api_capec},
{"r": "/api/capec/show/<capecid>", "m": ["GET"], "f": self.api_capec_by_id},
{"r": "/api/last", "m": ["GET"], "f": self.api_last},
Expand Down

0 comments on commit 0b8f717

Please sign in to comment.