added some cool stuff
This commit is contained in:
18
src/updater.py
Normal file
18
src/updater.py
Normal 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()
|
||||
Reference in New Issue
Block a user