浏览代码

final fix for true/false and 1/0

Antonio Fernandez 7 月之前
父节点
当前提交
5f3d4f9b03
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      borgmatic/hooks/pushover.py

+ 1 - 1
borgmatic/hooks/pushover.py

@@ -51,7 +51,7 @@ def ping_monitor(hook_config, config, config_filename, state, monitoring_log_lev
             )
 
     state_config = {
-        key: (int(value) if value is True and key in 'html' else value)
+        key: (int(value) if key in 'html' else value)
         for key, value in state_config.items()
     }