Explorar o código

final fix for true/false and 1/0

Antonio Fernandez hai 7 meses
pai
achega
5f3d4f9b03
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 = {
     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()
         for key, value in state_config.items()
     }
     }