Skip to content

Commit

Permalink
webapp: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
aiooss-anssi committed Nov 15, 2024
1 parent c60d1b4 commit baea4a4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions webapp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,6 @@ async def api_flow_get(request):
async def api_flow_raw_get(request):
flow_id = request.path_params["flow_id"]

# Query flow from database to get proto
cursor = await eve_database.execute(
"SELECT proto FROM flow WHERE id = ?", [flow_id]
)
flow = await cursor.fetchone()
if not flow:
raise HTTPException(404)

# Get associated raw data
cursor = await payload_database.execute(
"SELECT server_to_client, blob FROM raw WHERE flow_id = ?1 ORDER BY count",
Expand Down

0 comments on commit baea4a4

Please sign in to comment.