Skip to content

Commit

Permalink
Disable auto update checker and fix version processor
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidStirling committed Oct 22, 2024
1 parent 7dfbd10 commit 17781ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cellprofiler/gui/checkupdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand Down

0 comments on commit 17781ed

Please sign in to comment.