Skip to content

Commit

Permalink
to handle new json format from new data source (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyougithub authored Sep 19, 2022
1 parent 6c8e2ed commit 6a2b47e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openwebvulndb/common/cve.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def read_file(self, file_name):
async def read_api(self, url):
async with self.session.get(url) as response:
data = await response.json()
for entry in data:
for entry in data.get('results'):
self.read_one(entry)

async def read_one_from_api(self, cve_id):
Expand Down

0 comments on commit 6a2b47e

Please sign in to comment.