fix: update database insertion query to use concise column names in packets table
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 7s

This commit is contained in:
2025-11-25 16:46:03 +01:00
parent 04154f6ed3
commit 9fb3d2da7f

View File

@@ -69,16 +69,16 @@ async def db_insert_packet(pkt_info: dict):
conn = await asyncpg.connect(DB_DSN) conn = await asyncpg.connect(DB_DSN)
await conn.execute(""" await conn.execute("""
INSERT INTO packets( INSERT INTO packets(
interface, iface,
direction, direction,
src_mac, src_mac,
dst_mac, dst_mac,
eth_type, eth_type,
src_ip, src_ip,
dst_ip, dst_ip,
ip_protocol, protocol,
packet_len, length,
nft_verdict, ebpf_verdict,
raw_packet raw_packet
) VALUES($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11) ) VALUES($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11)
""", """,