added some cool stuff

This commit is contained in:
2023-11-30 21:21:06 +01:00
parent cb782b8b91
commit caef435209
5 changed files with 27 additions and 1 deletions

18
src/updater.py Normal file
View File

@@ -0,0 +1,18 @@
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()