Development
This commit is contained in:
parent
1ac45768de
commit
7e5b9d9c25
1 changed files with 3 additions and 3 deletions
|
|
@ -4,7 +4,7 @@ import json, re, subprocess, os, sys
|
||||||
import sanitize
|
import sanitize
|
||||||
import validation as validate
|
import validation as validate
|
||||||
from datetime import datetime, timezone
|
from datetime import datetime, timezone
|
||||||
from config_utils import config_hash, get_pending_entries, get_dashboard_pending, get_dashboard_done, load_snapshot_for_uuid, load_all_snapshots, get_done_timestamps, queue_command, _find_cmd_in_queues, _entry_ts_from_queue, _apply_changes_immediately, _seconds_until_nextrun, _format_timing, _is_locked, _lock_mtime, WEB_APP_DISPLAY_NAME, CONFIGS_DIR, DATA_DIR, WWW_DIR, ACCOUNTS_FILE, APP_DIR
|
from config_utils import config_hash, get_pending_entries, get_dashboard_pending, get_dashboard_done, load_snapshot_for_uuid, load_all_snapshots, get_done_timestamps, queue_command, _find_cmd_in_queues, _entry_ts_from_queue, _apply_changes_immediately, _seconds_until_next_run, _format_timing, _is_locked, _lock_mtime, WEB_APP_DISPLAY_NAME, CONFIGS_DIR, DATA_DIR, WWW_DIR, ACCOUNTS_FILE, APP_DIR
|
||||||
import factory
|
import factory
|
||||||
from factory import LEVEL_RANK, e, client_level, passes, build_items, build_snap_val, snap_expand_row
|
from factory import LEVEL_RANK, e, client_level, passes, build_items, build_snap_val, snap_expand_row
|
||||||
PAGES_DIR = os.path.join(APP_DIR, 'pages')
|
PAGES_DIR = os.path.join(APP_DIR, 'pages')
|
||||||
|
|
@ -897,7 +897,7 @@ def render_layout(view_id, content_html, tokens):
|
||||||
pending = get_pending_entries()
|
pending = get_pending_entries()
|
||||||
my_uuid = next((u for u, t, c, usr in pending if usr == current_user and c != 'fix problems'), None)
|
my_uuid = next((u for u, t, c, usr in pending if usr == current_user and c != 'fix problems'), None)
|
||||||
|
|
||||||
secs = _seconds_until_nextrun()
|
secs = _seconds_until_next_run()
|
||||||
locked = _is_locked()
|
locked = _is_locked()
|
||||||
lock_mtime = _lock_mtime()
|
lock_mtime = _lock_mtime()
|
||||||
other_bars = ''
|
other_bars = ''
|
||||||
|
|
@ -960,7 +960,7 @@ def render_layout(view_id, content_html, tokens):
|
||||||
fix_suffix = ('Fix is being applied now...' if fix_ts and mtime and fix_ts < mtime
|
fix_suffix = ('Fix is being applied now...' if fix_ts and mtime and fix_ts < mtime
|
||||||
else 'Fix will be applied on the next run.')
|
else 'Fix will be applied on the next run.')
|
||||||
else:
|
else:
|
||||||
timing = _format_timing(_seconds_until_nextrun())
|
timing = _format_timing(_seconds_until_next_run())
|
||||||
fix_suffix = (f'Fix will be applied {timing}.' if timing
|
fix_suffix = (f'Fix will be applied {timing}.' if timing
|
||||||
else 'Fix pending. The processing service is not running.')
|
else 'Fix pending. The processing service is not running.')
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue