fix: format to pass ci

This commit is contained in:
Matthias Jung
2025-11-09 10:44:07 +01:00
parent 0df7d57595
commit bf94317945
+6 -7
View File
@@ -93,23 +93,22 @@ class Download:
for photo in tqdm(photos, desc="Downloading photos"):
data = self.api.get_file("assets/" + photo["photo"])
with (self.config.p_data_photos / f"{photo["id"]}.jpg").open("wb") as file:
with (self.config.p_data_photos / f"{photo['id']}.jpg").open("wb") as file:
file.write(data)
def download_pictures(self):
self.config.p_data_pictures.mkdir(parents=True, exist_ok=True)
pictures = self.api.get("items/pictures", { "limit": -1 })
for picture in tqdm(pictures, desc="Downloading pictures") :
pictures = self.api.get("items/pictures", {"limit": -1})
for picture in tqdm(pictures, desc="Downloading pictures"):
# Download LaTeX Sources:
with (self.config.p_data_pictures / f"{picture["id"]}include.tex").open("w") as file:
with (self.config.p_data_pictures / f"{picture['id']}include.tex").open("w") as file:
file.write(picture["latex"])
# Download SVGs:
data = self.api.get_file(f"assets/{picture["picture"]}")
with (self.config.p_data_pictures / f"{picture["id"]}.svg").open("wb") as file:
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)
def download_includes(self):