mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
Use consistent default values/types
This commit is contained in:
@@ -106,8 +106,8 @@ class Extension:
|
||||
self.branch = None
|
||||
self.remote = None
|
||||
self.have_info_from_repo = False
|
||||
self.mtime = 0
|
||||
self.ctime = 0
|
||||
self.mtime = "2000-01-01T00:00Z"
|
||||
self.ctime = "2000-01-01T00:00Z"
|
||||
|
||||
def read_info(self, force=False):
|
||||
if self.have_info_from_repo and not force:
|
||||
|
||||
@@ -308,7 +308,7 @@ def create_html(search_text, sort_column):
|
||||
ext['enabled'] = installed.enabled if installed is not None else ''
|
||||
ext['remote'] = installed.remote if installed is not None else None
|
||||
ext['path'] = installed.path if installed is not None else ''
|
||||
ext['sort_default'] = f"{'1' if ext['is_builtin'] else '0'}{'1' if ext['installed'] else '0'}{ext.get('updated', '2000-01-01T00:00')}"
|
||||
ext['sort_default'] = f"{'1' if ext['is_builtin'] else '0'}{'1' if ext['installed'] else '0'}{ext.get('updated', '2000-01-01T00:00Z')}"
|
||||
sort_reverse, sort_function = sort_ordering[sort_column]
|
||||
|
||||
def dt(x: str):
|
||||
|
||||
Reference in New Issue
Block a user