mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
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:
@@ -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', '')}"
|
||||
|
||||
Reference in New Issue
Block a user