From 8ae6b728b5006817283e13b18d45aed7260b3cdc Mon Sep 17 00:00:00 2001 From: DaanSelen Date: Wed, 1 Apr 2026 11:53:00 +0200 Subject: [PATCH] chore: remove newline from writing history --- modules/history.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/history.py b/modules/history.py index a215c16..a7408ed 100644 --- a/modules/history.py +++ b/modules/history.py @@ -20,7 +20,7 @@ class History(): except PermissionError: Console.print_text(silent, Console.text_color.red + f"Failed to create directory, permission error.") return - + history_items = os.listdir(history_directory) if len(history_items) == 1: Console.print_text(silent, f"There is {len(history_items)} history item.") @@ -45,4 +45,4 @@ class History(): stitched_file = f"{self.history_directory}/meshbook_run_{datetime.now().strftime('%Y_%m_%d_%H_%M_%S')}.log" with open(stitched_file, "x") as f: - f.write(history + "\n") \ No newline at end of file + f.write(history)