Fix update availability logic

Bug that was hidden by the other bug that was fixed on this line. (See PR https://github.com/vladmandic/sdnext/pull/4501)
This commit is contained in:
awsr
2025-12-28 01:30:10 -08:00
parent 885cbcd118
commit 96e9cdae31
+1 -1
View File
@@ -329,7 +329,7 @@ def create_html(search_text, sort_column):
except Exception as e:
debug(f'Extension get updated error: name={ext["name"]} url={ext["url"]} {e}')
local_ver_date = datetime.fromtimestamp(ext['commit_date'], timezone.utc) # TZ-aware
update_available = (installed is not None) and (ext['remote'] is not None) and (updated > local_ver_date) # TZ-aware
update_available = (installed is not None) and (not ext['is_builtin']) and (ext['remote'] is not None) and (updated > local_ver_date) # TZ-aware
if update_available:
debug(f'Extension update available: name={ext["name"]} updated={extensions.format_dt(updated)} commit={extensions.format_dt(local_ver_date)}') # TZ-aware
ext['sort_user'] = f"{'0' if ext['is_builtin'] else '1'}{'1' if ext['installed'] else '0'}{ext.get('name', '')}"