Skip to content

Commit baea4a4

Browse files
committed
webapp: remove dead code
1 parent c60d1b4 commit baea4a4

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

webapp/main.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,6 @@ async def api_flow_get(request):
185185
async def api_flow_raw_get(request):
186186
flow_id = request.path_params["flow_id"]
187187

188-
# Query flow from database to get proto
189-
cursor = await eve_database.execute(
190-
"SELECT proto FROM flow WHERE id = ?", [flow_id]
191-
)
192-
flow = await cursor.fetchone()
193-
if not flow:
194-
raise HTTPException(404)
195-
196188
# Get associated raw data
197189
cursor = await payload_database.execute(
198190
"SELECT server_to_client, blob FROM raw WHERE flow_id = ?1 ORDER BY count",

0 commit comments

Comments
 (0)