From 2967ecd0fa4f350c5b46aee41d51eee41416dfae Mon Sep 17 00:00:00 2001 From: Spr_Aachen <2835946988@qq.com> Date: Tue, 1 Apr 2025 08:57:57 +0800 Subject: [PATCH] Fix parameter assignment problem for DefaultRefer --- api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api.py b/api.py index d92d9c8..3b4c3bf 100644 --- a/api.py +++ b/api.py @@ -176,9 +176,9 @@ import subprocess class DefaultRefer: def __init__(self, path, text, language): - self.path = args.default_refer_path - self.text = args.default_refer_text - self.language = args.default_refer_language + self.path = path + self.text = text + self.language = language def is_ready(self) -> bool: return is_full(self.path, self.text, self.language)