From a00f418fcf16f6937a876efa0718f0da6e89e604 Mon Sep 17 00:00:00 2001 From: Zedifus Date: Tue, 28 Nov 2023 01:54:55 +0000 Subject: [PATCH] Fix password case lint warning --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 110d5e77..54bb4092 100644 --- a/main.py +++ b/main.py @@ -172,15 +172,15 @@ if __name__ == "__main__": f"through your router/firewall if you would like to be able " f"to access Crafty remotely." ) - password = helper.create_pass() - installer.default_settings(password) + PASSWORD = helper.create_pass() + installer.default_settings(PASSWORD) with open( os.path.join(app_path, "app", "config", "default-creds.txt"), "w", encoding="utf-8", ) as cred_file: cred_file.write( - json.dumps({"username": "admin", "password": password}, indent=4) + json.dumps({"username": "admin", "password": PASSWORD}, indent=4) ) os.chmod(os.path.join(app_path, "app", "config", "default-creds.txt"), 0o600) else: