From 90fb5c616e31e339dc0b6324b5c98df795fcee4d Mon Sep 17 00:00:00 2001
From: Daniel Salzman <daniel.salzman@nic.cz>
Date: Mon, 27 Sep 2021 14:28:06 +0200
Subject: [PATCH] scripts: update timerdb-info.py with last_refresh_ok

---
 scripts/timerdb-info.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/scripts/timerdb-info.py b/scripts/timerdb-info.py
index a5b7f58e99..cc503fddb6 100755
--- a/scripts/timerdb-info.py
+++ b/scripts/timerdb-info.py
@@ -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))
-- 
GitLab