From 339966c5e53dedaf763dd8500fd52ab64e89ff41 Mon Sep 17 00:00:00 2001 From: Tim Grelka Date: Sun, 9 Nov 2025 10:59:57 +0100 Subject: [PATCH] docs: update comments --- src/download.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/download.py b/src/download.py index a0926ef..4c9d586 100644 --- a/src/download.py +++ b/src/download.py @@ -102,11 +102,11 @@ class Download: pictures = self.api.get("items/pictures", {"limit": -1}) for picture in tqdm(pictures, desc="Downloading pictures"): - # Download LaTeX Sources: + # Save LaTeX sources to file with (self.config.p_data_pictures / f"{picture['id']}include.tex").open("w") as file: file.write(picture["latex"]) - # Download SVGs: + # Download SVG data = self.api.get_file(f"assets/{picture['picture']}") with (self.config.p_data_pictures / f"{picture['id']}.svg").open("wb") as file: file.write(data)