Skip to content

Commit

Permalink
fix: 日志文件配置的环境变量写错了
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxi committed Jul 4, 2024
1 parent c1a2ee4 commit 924fbc2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xiaomusic/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ class Config:
use_music_api: bool = (
os.getenv("XIAOMUSIC_USE_MUSIC_API", "false").lower() == "true"
)
use_music_audio_id: str = os.getenv("XIAOMUSIC_USE_MUSIC_AUDIO_ID", "1582971365183456177")
use_music_audio_id: str = os.getenv(
"XIAOMUSIC_USE_MUSIC_AUDIO_ID", "1582971365183456177"
)
use_music_id: str = os.getenv("XIAOMUSIC_USE_MUSIC_ID", "355454500")
log_file: str = os.getenv("XIAOMUSIC_MUSIC_LOG_FILE", "/tmp/xiaomusic.txt")
log_file: str = os.getenv("XIAOMUSIC_LOG_FILE", "/tmp/xiaomusic.txt")
# 模糊搜索匹配的最低相似度阈值
fuzzy_match_cutoff: float = float(os.getenv("XIAOMUSIC_FUZZY_MATCH_CUTOFF", "0.6"))
# 开启模糊搜索
Expand Down

0 comments on commit 924fbc2

Please sign in to comment.