From fcbe0c38f3ab34bb489a958b79203d8995055bc9 Mon Sep 17 00:00:00 2001 From: Andrea Zonca Date: Thu, 26 Sep 2024 19:26:58 -0700 Subject: [PATCH] fix url --- create_markdown.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/create_markdown.py b/create_markdown.py index 45d8cb2..3ddceef 100644 --- a/create_markdown.py +++ b/create_markdown.py @@ -99,7 +99,9 @@ def write_dataset(dset, n_files, data_size, file_table_rows): total_bytes += file_entry["length"] fsize = sizeof_fmt(file_entry["length"]) freq = get_fileinfo(file_name) - flink = f"[`{file_name}`](https://{config['DOMAIN']}/{file_path})" + flink = f"[`{file_name}`]({file_entry['url']})" + if flink.endswith(".jpg)") and dset in ["dust", "synch"]: + flink = "!" + flink dset_table_data.append([flink, freq, fsize]) dset_size = sizeof_fmt(total_bytes) write_dataset(dset, n_files, dset_size, dset_table_data)