We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82d5dc1 commit a654dbfCopy full SHA for a654dbf
1 file changed
src/update.py
@@ -0,0 +1,26 @@
1
+import requests
2
+from debug import debug_print
3
+
4
+UPDATE_URL = 'https://raw.githubusercontent.com/rompelhd/AdminFreeExec/refs/heads/main/version'
5
+CURRENT_VERSION = '0.2.1'
6
+LATEST_VERSION = None
7
8
+def check_update_applicationfor_update():
9
+ response = requests.get(UPDATE_URL)
10
+ response.raise_for_status()
11
12
+ LATEST_VERSION = response.text.strip()
13
+ debug_print(f"Response status code: {response.status_code} Latest version fetched: {LATEST_VERSION}", "INFO")
14
15
16
+def result_update():
17
+ try:
18
+ if LATEST_VERSION != CURRENT_VERSION:
19
+ return True
20
+ return False
21
+ except Exception as e:
22
+ debug_print(f"Error checking for update: {e}", "ERROR")
23
24
25
+def update_application():
26
+ debug_print(f"Actualizando", "INFO")
0 commit comments