mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-07 09:22:44 +02:00
Update report_generator.py
This commit is contained in:
@@ -83,7 +83,9 @@ def parse_log_file(file_path):
|
||||
log_data['command_timestamps'].append((timestamp.isoformat(), 'LLM Query'))
|
||||
|
||||
command = re.search(r"'cmd': '(\w+)'", line)
|
||||
user = re.search(r"'user': '(\w+)'", line)
|
||||
user = re.search(r"From: (\w+)", line)
|
||||
if user:
|
||||
user = user.group(1)
|
||||
if command:
|
||||
cmd = command.group(1)
|
||||
log_data['command_counts'][cmd] += 1
|
||||
|
||||
Reference in New Issue
Block a user