修复不能输入密码
This commit is contained in:
6
main.py
6
main.py
@@ -332,7 +332,7 @@ class CKWK:
|
||||
# print(self.courses)
|
||||
# os._exit(0)
|
||||
for l in self.courses:
|
||||
if "已学" in l.get("state", "") :
|
||||
if "已学" in l.get("state", ""):
|
||||
self.log(
|
||||
f'{l.get("name", "")} --> {l.get("id", "")} --> 已经学习过了'
|
||||
)
|
||||
@@ -381,9 +381,7 @@ if __name__ == "__main__":
|
||||
print(f"{i+1}: {h[0]} {h[1]}")
|
||||
c = int(input("请选择刷课平台: ")) - 1
|
||||
u = os.environ.get("YURU_ACCOUNT", "")
|
||||
p = os.environ.get(
|
||||
"YURU_PASSWORD",
|
||||
)
|
||||
p = os.environ.get("YURU_PASSWORD", "")
|
||||
if u == "":
|
||||
u = input("请输入账号: ")
|
||||
if p == "":
|
||||
|
||||
Reference in New Issue
Block a user