Skip to content

Commit

Permalink
fix url
Browse files Browse the repository at this point in the history
  • Loading branch information
zonca committed Sep 27, 2024
1 parent 695232e commit fcbe0c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion create_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fcbe0c3

Please sign in to comment.