From: Roland Häder Date: Sat, 9 Dec 2023 05:04:20 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8d598a643e074bba4b83ff42a74a7c8f42c5b22d;p=fba.git Continued: - initially set original_software, maybe it needs fixing later --- 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() ), )