From 99673a8b100802b87f48d62771aaa673b94edc37 Mon Sep 17 00:00:00 2001 From: Eduard Kaverinskyi Date: Sat, 18 Jan 2025 18:58:21 +0100 Subject: [PATCH] device_mapper.py: fix passing non-python value to sqlite db Signed-off-by: Eduard Kaverinskyi --- whois/data/db/mapper/device_mapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whois/data/db/mapper/device_mapper.py b/whois/data/db/mapper/device_mapper.py index cb016f6..cee0554 100644 --- a/whois/data/db/mapper/device_mapper.py +++ b/whois/data/db/mapper/device_mapper.py @@ -6,7 +6,7 @@ def device_to_devicetable_mapper(device: Device) -> DeviceTable: return DeviceTable( mac_address=device.mac_address, hostname=device.hostname, - last_seen=device.last_seen, + last_seen=device.last_seen.python_value, owner=device.owner, flags=device.flags, )