Skip to content

Commit

Permalink
main
Browse files Browse the repository at this point in the history
  • Loading branch information
joocer committed Mar 26, 2024
1 parent 33f52cb commit 99a6759
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
sys.path.insert(0, os.path.join(sys.path[0], "../../opteryx/"))
# sys.path.insert(0, os.path.join(sys.path[0], "../../[email protected]/"))

import opteryx.connection
import uvicorn
from fastapi import FastAPI, Request
from fastapi.responses import HTMLResponse, ORJSONResponse
Expand Down Expand Up @@ -68,6 +69,11 @@ async def get_identify_token(token: str):
"class": nid,
"search": attribs.get("search").replace(":item", "'" + token + "'"),
}
c = opteryx.connect()
cur = c.cursor()
cur.execute("SELECT * FROM 'tables/CVE_TABLE.csv'")
print(cur)
print(cur.stats)
return HTMLResponse(status_code=404)


Expand Down

0 comments on commit 99a6759

Please sign in to comment.