From b3ca85b690487546e7e5b76edf2b5f4ed1102499 Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Tue, 7 Apr 2020 12:43:36 +0200 Subject: [PATCH] server: fix incorrect file mode for ob_state file --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index de031e8..bfce732 100644 --- a/server.py +++ b/server.py @@ -20,7 +20,7 @@ def write_ob_status(status: bool) -> None: if not os.path.exists("/music/ob_state.conf"): print("OB State file does not exist. Bailing.") return - with open("/music/ob_state.conf", "r") as fd: + with open("/music/ob_state.conf", "w") as fd: content = fd.read() if "ws" in content: content = re.sub(file_contents_ex, "ws=" + str(1 if status else 0), content)