From d895ad196d67106a8923b1c710bfc5f7b33ffbef Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 22 Feb 2025 16:46:47 -0500 Subject: [PATCH] Update fc_block_decode.py convert date time to string --- groundstation/fc_block_decode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/groundstation/fc_block_decode.py b/groundstation/fc_block_decode.py index b772f5a1..2ae9c157 100644 --- a/groundstation/fc_block_decode.py +++ b/groundstation/fc_block_decode.py @@ -37,7 +37,7 @@ image_dir = "/home/pi/fctelem/" image = "image_file" ssdv = "/home/pi/ssdv/ssdv -d -J " -date_time = datetime.datetime.now() +date_time = str(datetime.datetime.now()) system_and_print("sudo rm " + image_dir + image) #system_and_print("sudo rm " + html_dir + "*") @@ -177,7 +177,7 @@ if __name__ == "__main__": for line in csv_file: html_file.write(line) html_file.write("
") - date_time = datetime.datetime.now() + date_time = str(datetime.datetime.now()) tlm_string = fstr(csv_format) html_file.write(tlm_string) html_file.write("
")