mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-16 18:37:23 +08:00
Opt: Protect azurstat_id in settings
This commit is contained in:
7
alas.py
7
alas.py
@@ -90,7 +90,10 @@ class AzurLaneAutoScript:
|
||||
|
||||
def setting(self):
|
||||
for key, value in self.config.config['Setting'].items():
|
||||
print(f'{key} = {value}')
|
||||
if key == 'azurstat_id':
|
||||
print(f'{key} = <sensitive_infomation>')
|
||||
else:
|
||||
print(f'{key} = {value}')
|
||||
|
||||
logger.hr('Settings saved')
|
||||
self.update_check()
|
||||
@@ -113,7 +116,7 @@ class AzurLaneAutoScript:
|
||||
def emulator(self):
|
||||
for key, value in self.config.config['Emulator'].items():
|
||||
if key == 'github_token':
|
||||
print(f'{key} = {"<sensitive_infomation>"}')
|
||||
print(f'{key} = <sensitive_infomation>')
|
||||
else:
|
||||
print(f'{key} = {value}')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user