From 8d598a643e074bba4b83ff42a74a7c8f42c5b22d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 9 Dec 2023 06:04:20 +0100 Subject: [PATCH] Continued: - initially set original_software, maybe it needs fixing later --- fba/models/instances.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fba/models/instances.py b/fba/models/instances.py index 77b198e..8a4103e 100644 --- a/fba/models/instances.py +++ b/fba/models/instances.py @@ -222,13 +222,14 @@ def add(domain: str, origin: str, command: str, path: str = None, software: str logger.info("Adding instance domain='%s',origin='%s',software='%s',command='%s' ...", domain, origin, software, command) database.cursor.execute( - "INSERT INTO instances (domain, origin, command, hash, software, first_seen) VALUES (?, ?, ?, ?, ?, ?)", + "INSERT INTO instances (domain, origin, command, hash, software, original_software, first_seen) VALUES (?, ?, ?, ?, ?, ?, ?)", ( domain, origin, command, utils.get_hash(domain), software, + software, time.time() ), ) -- 2.39.5