Kaynağa Gözat

Merge branch 'zhayujie:master' into update-0626

master
vision GitHub 5 ay önce
ebeveyn
işleme
74eed93497
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: B5690EEEBB952194
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. +2
    -2
      config.py

+ 2
- 2
config.py Dosyayı Görüntüle

@@ -242,7 +242,7 @@ def drag_sensitive(config):
conf_dict_copy = copy.deepcopy(conf_dict) conf_dict_copy = copy.deepcopy(conf_dict)
for key in conf_dict_copy: for key in conf_dict_copy:
if "key" in key or "secret" in key: if "key" in key or "secret" in key:
if isinstance(key, str):
if isinstance(conf_dict_copy[key], str):
conf_dict_copy[key] = conf_dict_copy[key][0:3] + "*" * 5 + conf_dict_copy[key][-3:] conf_dict_copy[key] = conf_dict_copy[key][0:3] + "*" * 5 + conf_dict_copy[key][-3:]
return json.dumps(conf_dict_copy, indent=4) return json.dumps(conf_dict_copy, indent=4)


@@ -250,7 +250,7 @@ def drag_sensitive(config):
config_copy = copy.deepcopy(config) config_copy = copy.deepcopy(config)
for key in config: for key in config:
if "key" in key or "secret" in key: if "key" in key or "secret" in key:
if isinstance(key, str):
if isinstance(config_copy[key], str):
config_copy[key] = config_copy[key][0:3] + "*" * 5 + config_copy[key][-3:] config_copy[key] = config_copy[key][0:3] + "*" * 5 + config_copy[key][-3:]
return config_copy return config_copy
except Exception as e: except Exception as e:


Yükleniyor…
İptal
Kaydet