From bc98aa2fa20e1656b337254f907d3888b939f822 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 28 Jun 2023 22:30:33 +0200 Subject: [PATCH 1/3] =?UTF-8?q?=E2=80=9Espaceapi.py=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spaceapi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spaceapi.py b/spaceapi.py index e9bba18..c1fc6b1 100755 --- a/spaceapi.py +++ b/spaceapi.py @@ -6,6 +6,7 @@ import requests import os import sys +from typing import List path: str = sys.argv[1] api: str = "https://api.dezentrale.cloud/spaceapi/v14" @@ -14,7 +15,7 @@ space_closed: str = path + "/assets/logo_closed" space_unknown: str = path + "/assets/logo_unknown" space_logo: str = path + "/assets/logo" -extensions: list[str] = [".png", ".svg"] +extensions: List[str] = [".png", ".svg"] # every extension needs to be linked def link(src: str, dest: str): -- 2.39.2 From 2b5ddcd72b23a33776d572255ebaca2cd6eec537 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 28 Jun 2023 22:32:44 +0200 Subject: [PATCH 2/3] Cosmetic changes --- auto_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_build.sh b/auto_build.sh index a24e08d..a11ff33 100755 --- a/auto_build.sh +++ b/auto_build.sh @@ -91,7 +91,7 @@ latest_remote_sha () { # do the build build_page() { # sync logo with spaceapi - "python3" "$CLONE_DIR""/spaceapi.py" "$CLONE_DIR" + ./spaceapi.py "$CLONE_DIR" TMPDIR=$(mktemp -d -t hugo_build_XXXXX) -- 2.39.2 From af4560513b890cef18cbcb581cb5113a1a0ccb3b Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 28 Jun 2023 22:37:35 +0200 Subject: [PATCH 3/3] Added shebang --- spaceapi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spaceapi.py b/spaceapi.py index c1fc6b1..1658407 100755 --- a/spaceapi.py +++ b/spaceapi.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Python Requirements # python3 # requests -- 2.39.2