Fix parameter assignment problem for DefaultRefer

This commit is contained in:
Spr_Aachen 2025-04-01 08:57:57 +08:00
parent 03b662a769
commit 2967ecd0fa

6
api.py
View File

@ -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)