From 7d7f57b3f47d1a0e8c90eb955ed81149b8e21843 Mon Sep 17 00:00:00 2001 From: Pyhtagodzilla <1670671958@qq.com> Date: Fri, 20 Jun 2025 13:17:48 +0800 Subject: [PATCH] I can't use os.getlogin() on my service environment, so I just delete it. --- Authtication.py | 2 -- run.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Authtication.py b/Authtication.py index c6e2df4..e07bb18 100644 --- a/Authtication.py +++ b/Authtication.py @@ -22,9 +22,7 @@ class BUCTAU: self.USER_USERNAME = os.environ.get('BUCT_AUTHENTICATION_USERNAME') self.USER_PASSWORD = os.environ.get('BUCT_AUTHENTICATION_PASSWORD') - self.USER_NAME = os.getlogin() - logging.info(f"USER now is {self.USER_NAME}") logging.info(f"BUCTAU initialized with username:{self.USER_USERNAME}") logging.info(f"BUCTAU initialized with password:{self.USER_PASSWORD}") # print(f"USER now is {self.USER_NAME}") diff --git a/run.py b/run.py index e30990f..258aacd 100644 --- a/run.py +++ b/run.py @@ -5,7 +5,7 @@ from Authtication import BUCTAU def main(): """Main function to run the script.""" authenticator = BUCTAU() - driver = authenticator.init_driver_edge() + driver = authenticator.init_driver_chrome() past_time = time.time() while True: if time.time() - past_time > 10.0: