]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 9 Dec 2023 05:04:20 +0000 (06:04 +0100)
committerRoland Häder <roland@mxchange.org>
Sat, 9 Dec 2023 05:04:20 +0000 (06:04 +0100)
- initially set original_software, maybe it needs fixing later

fba/models/instances.py

index 77b198e4c920d3fcbe0134c9db91cd241f77248f..8a4103ef518d45bf01221270541c6c76a507a5bc 100644 (file)
@@ -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()
         ),
     )