Skip to content

Commit 3f0227b

Browse files
committed
fmt: Clean up split_files case
1 parent 4eec3bc commit 3f0227b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drishti/handlers/handle_recorder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,8 @@ def process_helper(file_map, df_intervals, df_posix_records, fid=None):
581581

582582
# Export to HTML, SVG, and CSV
583583
input_filename = os.path.basename(os.path.dirname(args.log_path))
584-
input_filename = f"{input_filename}.{fid}" if args.split_files else input_filename # Append fid if split_files is enabled
584+
if args.split_files:
585+
input_filename = f"{input_filename}.{fid}"
585586
out_dir = args.export_dir if args.export_dir != "" else os.getcwd()
586587

587588
export_html(console, out_dir, input_filename)

0 commit comments

Comments
 (0)