New Device creation int.replace issue #833

This commit is contained in:
jokob-sk
2024-10-11 19:00:08 +11:00
parent 30b8ecb743
commit f9e6871ab2
2 changed files with 6 additions and 3 deletions

View File

@@ -853,7 +853,10 @@ def sanitize_string(input):
def sanitize_SQL_input(val):
if val is None:
return ''
return val.replace("'", "_")
if isinstance(val, str):
return val.replace("'", "_")
return val # Return non-string values as they are
#-------------------------------------------------------------------------------
# Function to normalize the string and remove diacritics

View File

@@ -28,7 +28,7 @@ def process_scan (db):
mylog('none','[Process Scan] Stats end')
# Create Events
mylog('verbose','[Process Scan] Sessions Events (connect / discconnect)')
mylog('verbose','[Process Scan] Sessions Events (connect / disconnect)')
insert_events(db)
# Create New Devices