Forráskód Böngészése

fix for true/false to 1/0

Antonio Fernandez 7 hónapja
szülő
commit
5321301708
1 módosított fájl, 1 hozzáadás és 1 törlés
  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: (1 if value is True and key in 'html' else value)
+        key: (int(value) if value is True and key in 'html' else value)
         for key, value in state_config.items()
     }