From 7688acf93b8ceee89ef4aeabcb584cc4bfb280c1 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 14 Feb 2025 16:39:13 -0500 Subject: [PATCH] Update fc_block_decode.py write line from csv --- groundstation/fc_block_decode.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/groundstation/fc_block_decode.py b/groundstation/fc_block_decode.py index 05d1605b..f9e68d02 100644 --- a/groundstation/fc_block_decode.py +++ b/groundstation/fc_block_decode.py @@ -162,11 +162,13 @@ if __name__ == "__main__": with open(html_dir + "index.html", "w") as html_file: html_file.write(head_string) html_file.write(telem_string) + html_file.write("
") with open(html_dir + "/images/telem.csv.txt", "r") as csv_file: - csv_file.read(old_tlm_string) - html_file.write(old_tlm_string) + for line in csv_file: + html_file.write(line) + html_file.write("
") html_file.write(tlm_string) - html_file.write("\n") + html_file.write("
") html_file.write(foot_string) else: print("Payload not an image!")