From 17781ed47b34b6199dfb755e5b60e8c19c3cefea Mon Sep 17 00:00:00 2001 From: David Stirling Date: Tue, 22 Oct 2024 10:34:27 +0100 Subject: [PATCH] Disable auto update checker and fix version processor --- cellprofiler/gui/checkupdate.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cellprofiler/gui/checkupdate.py b/cellprofiler/gui/checkupdate.py index fe5e027a25..ebf5c42df3 100644 --- a/cellprofiler/gui/checkupdate.py +++ b/cellprofiler/gui/checkupdate.py @@ -7,10 +7,10 @@ def check_update(parent, force=False): - if not force and not check_date(): + if not force: return try: - response = requests.get("https://api.github.com/repos/cellprofiler/cellprofiler/releases/latest", timeout=0.25) + response = requests.get("https://api.github.com/repos/glencoesoftware/cellprofiler/releases/latest", timeout=0.25) except: response = False message = "CellProfiler was unable to connect to GitHub to check for updates" @@ -19,6 +19,8 @@ def check_update(parent, force=False): response = response.json() if status == 200 and 'name' in response: latest_version = response['name'][1:] + if '-' in latest_version: + latest_version = latest_version.split('-')[0] if current_version < latest_version or len(current_version) != len(latest_version): body_text = response['body'] if len(body_text) > 1000: