From 38812a9e41b468e238d22ab33ee4b11fd8be3732 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 22 Feb 2025 16:51:13 -0500 Subject: [PATCH] Update fc_block_decode.py date_time first 21 chars --- groundstation/fc_block_decode.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/groundstation/fc_block_decode.py b/groundstation/fc_block_decode.py index 2ae9c157..757a2853 100644 --- a/groundstation/fc_block_decode.py +++ b/groundstation/fc_block_decode.py @@ -37,7 +37,8 @@ image_dir = "/home/pi/fctelem/" image = "image_file" ssdv = "/home/pi/ssdv/ssdv -d -J " -date_time = str(datetime.datetime.now()) +date_time_string = str(datetime.datetime.now()) +date_time = date_time_string[:21] system_and_print("sudo rm " + image_dir + image) #system_and_print("sudo rm " + html_dir + "*") @@ -177,7 +178,8 @@ if __name__ == "__main__": for line in csv_file: html_file.write(line) html_file.write("
") - date_time = str(datetime.datetime.now()) + date_time_string = str(datetime.datetime.now()) + date_time = date_time_string[:21] tlm_string = fstr(csv_format) html_file.write(tlm_string) html_file.write("
")