Fix quotes on historic

This commit is contained in:
xss 2022-03-07 07:37:41 +11:00
parent aabd0333b5
commit 309e3dcc1c

View File

@ -167,7 +167,7 @@ def write_s3(serial, data, launch_sites):
#get max alt
append_data = ""
if serial in launch_sites:
append_data = f"\"launch_site\": {launch_sites[serial]['launch_site']}, \"launch_site_range_estimate\": {launch_sites[serial]['launch_site_range_estimate']}"
append_data = f"\"launch_site\": \"{launch_sites[serial]['launch_site']}\", \"launch_site_range_estimate\": {launch_sites[serial]['launch_site_range_estimate']}"
max_alt = sorted(data, key=lambda k: json.loads(k)['alt'])[-1]
summary = [
json.loads(data[0]),