Skip to content
Snippets Groups Projects
Commit 90fb5c61 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

scripts: update timerdb-info.py with last_refresh_ok

parent 735283b6
No related branches found
No related tags found
1 merge request!1363Load fail bootstrap
Pipeline #88733 passed
......@@ -20,6 +20,10 @@ class TimerDBInfo:
else:
return datetime.datetime.fromtimestamp(timestamp).isoformat()
@classmethod
def format_bool(cls, value):
return "yes" if value != 0 else "no"
@classmethod
def format_seconds(cls, value):
return "%d" % value
......@@ -51,6 +55,8 @@ class TimerDBInfo:
# knot >= 3.1
0x87: ("catalog_member", cls.format_timestamp),
0x88: ("notify_serial", cls.format_notify_serial),
# knot >= 3.2
0x89: ("last_refresh_ok", cls.format_bool),
}
if id in timers:
return (timers[id][0], timers[id][1](value))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment