Преглед изворни кода

feat: Update TEMP_MAIL processing in config.py to extract username before '@'

chengchongzhen пре 1 година
родитељ
комит
77aea54bcf
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      config.py

+ 1 - 1
config.py

@@ -23,7 +23,7 @@ class Config:
         # 加载 .env 文件
         load_dotenv(dotenv_path)
 
-        self.temp_mail = os.getenv("TEMP_MAIL", "").strip()
+        self.temp_mail = os.getenv("TEMP_MAIL", "").strip().split("@")[0]
         self.domain = os.getenv("DOMAIN", "").strip()
 
         self.check_config()