diff --git a/docker/routlin-dash/app/pages/dnsblocking/view.py b/docker/routlin-dash/app/pages/dnsblocking/view.py index cee6c82..3cb4016 100644 --- a/docker/routlin-dash/app/pages/dnsblocking/view.py +++ b/docker/routlin-dash/app/pages/dnsblocking/view.py @@ -36,7 +36,8 @@ def _dnsblocking_log_tail(cfg): return '(error reading log)', '' -WARN_ICON = ' ' +WARN_ICON = ' ' +ERROR_ICON = ' ' def _last_dl_time(): @@ -83,9 +84,12 @@ def blocklist_stats_html(cfg): except Exception: size_str = '-' file_mtime = None - warn = '' - if last_dl and file_mtime is not None and file_mtime < last_dl: + if file_mtime is None: + warn = ERROR_ICON + elif last_dl and file_mtime < last_dl: warn = WARN_ICON + else: + warn = '' rows += ( '' f'{factory.e(name)}'