import requests import json def read_version(): with open(file=".version.json") as file: version = json.load(file) return version def check_for_update(): request = "https://gitlab.com/DasMoorhuhn/autopicture-v3/-/raw/main/src/.version.yml" response = requests.get(request) if not response.ok: return print(response.text) check_for_update()