fixes
This commit is contained in:
@@ -63,7 +63,7 @@ def mariadb_insert_logs(csv_entries):
|
||||
csv_entry[2], csv_entry[3], csv_entry[4]]
|
||||
inserts_sql += '(%s, %s, %s, %s, %s), '
|
||||
except IndexError:
|
||||
print('index error for csv entry: ' + csv_entry)
|
||||
print('index error for csv entry: ' + str(csv_entry))
|
||||
pass
|
||||
|
||||
# remove last comma for sql compatibility
|
||||
@@ -72,7 +72,7 @@ def mariadb_insert_logs(csv_entries):
|
||||
try:
|
||||
sql_cursor.execute(inserts_sql, values)
|
||||
except Exception:
|
||||
print('could not insert entry: ' + values) # TODO proper error handling
|
||||
print('could not insert entry: ' + str(values)) # TODO proper error handling
|
||||
pass
|
||||
|
||||
sql_connection.commit()
|
||||
|
||||
@@ -23,6 +23,8 @@ def main():
|
||||
# check_duplicates() TODO readd
|
||||
start = time.time()
|
||||
|
||||
print('starting analysis ' + str(start))
|
||||
|
||||
distinct_ttl_count = {}
|
||||
# everything = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user