diff --git a/nixpkgs_notifier.py b/nixpkgs_notifier.py index 128cac8..8e1ad98 100644 --- a/nixpkgs_notifier.py +++ b/nixpkgs_notifier.py @@ -9,8 +9,6 @@ from time import sleep import subprocess import json -global matrixPing, matrixUserToPing, matrixUserServer, matrixRoom - state_dir = Path( os.environ.get("XDG_STATE_HOME", Path.home() / ".local" / "state") ) / "nixpkgs-notifier" @@ -187,6 +185,16 @@ def fetchStatus(PRnumber): def main(): # fetch config cfg = load_config() + + global configTime + global configFetchTime + global shouldLocalNotify + global shouldMatrixNotify + global matrixRoom + global matrixPing + global matrixUserToPing + global matrixUserServer + configTime = cfg["configTime"] configFetchTime = cfg["configFetchTime"] shouldLocalNotify = cfg["localNotify"]