mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-11 23:46:15 +00:00
comment update
This commit is contained in:
parent
37e3087f5b
commit
6c3920cf69
@ -1044,12 +1044,13 @@ def write_normalized(guid_utils: TskGuidUtils, output_file, db_conn, table: str,
|
|||||||
if row_dict is not None:
|
if row_dict is not None:
|
||||||
# NOTE: This is an alternate approach to representing values as json-like lines
|
# NOTE: This is an alternate approach to representing values as json-like lines
|
||||||
# entries = []
|
# entries = []
|
||||||
# for idx in range(0, len(column_names)):
|
# for column in column_names:
|
||||||
# column = column_names[idx]
|
# value = get_sql_insert_value(row_dict[column] if column in row_dict and row_dict[column] else None)
|
||||||
# value = get_sql_insert_value(row_dict[column] if column in row_dict else None)
|
# if value:
|
||||||
# entries.append((column, value))
|
# entries.append((column, value))
|
||||||
# insert_values = ", ".join([f"{pr[0]}: {pr[1]}" for pr in entries])
|
# insert_values = ", ".join([f"{pr[0]}: {pr[1]}" for pr in entries])
|
||||||
# insert_statement = f"{table}: {{{insert_values}}}\n"
|
# insert_statement = f"{table}: {{{insert_values}}}\n"
|
||||||
|
# output_file.write(insert_statement)
|
||||||
|
|
||||||
values_statement = ",".join(get_sql_insert_value(row_dict[col]) for col in column_names)
|
values_statement = ",".join(get_sql_insert_value(row_dict[col]) for col in column_names)
|
||||||
insert_statement = f'INSERT INTO "{table}" VALUES({values_statement});\n'
|
insert_statement = f'INSERT INTO "{table}" VALUES({values_statement});\n'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user