fix db select
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 8s

This commit is contained in:
2025-12-03 20:52:03 +01:00
parent 329a81c7bc
commit 5d27223bca

View File

@@ -133,8 +133,7 @@ class DatabasePool:
# Select explicit columns to ensure predictable dict keys # Select explicit columns to ensure predictable dict keys
rows = await conn.fetch( rows = await conn.fetch(
""" """
SELECT id, iface, src_mac, dst_mac, eth_type, vlan_id, src_ip, dst_ip, SELECT *
ip_proto, src_port, dst_port, length, raw, created_at
FROM packets FROM packets
ORDER BY id DESC ORDER BY id DESC
LIMIT $1 LIMIT $1