mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-18 05:41:29 +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):
|
def setting(self):
|
||||||
for key, value in self.config.config['Setting'].items():
|
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')
|
logger.hr('Settings saved')
|
||||||
self.update_check()
|
self.update_check()
|
||||||
@@ -113,7 +116,7 @@ class AzurLaneAutoScript:
|
|||||||
def emulator(self):
|
def emulator(self):
|
||||||
for key, value in self.config.config['Emulator'].items():
|
for key, value in self.config.config['Emulator'].items():
|
||||||
if key == 'github_token':
|
if key == 'github_token':
|
||||||
print(f'{key} = {"<sensitive_infomation>"}')
|
print(f'{key} = <sensitive_infomation>')
|
||||||
else:
|
else:
|
||||||
print(f'{key} = {value}')
|
print(f'{key} = {value}')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user