This commit is contained in:
恍兮惚兮 2024-11-14 23:34:51 +08:00
parent 2cbdb8273f
commit d42ab9cf77
2 changed files with 10 additions and 9 deletions

View File

@ -2608,14 +2608,14 @@ if (content.style.display === 'block') {
extra = "display: none;"
uid = str(uuid.uuid4())
lis.append(
rf"""<li><div class="collapsible-header" id="{uid}" onclick="mdict_flowstyle_clickcallback('{uid}')">{title}</div><div class="collapsible-content" style="{extra}">
{res}
</div></li>"""
r"""<li><div class="collapsible-header" id="{}" onclick="mdict_flowstyle_clickcallback('{}')">{}</div><div class="collapsible-content" style="{}">
{}
</div></li>""".format(uid,uid,title,extra,res)
)
content += rf"""
content += r"""
<ul class="collapsible-list">
{''.join(lis)}
</ul>"""
{}
</ul>""".format(''.join(lis))
return content

View File

@ -78,12 +78,13 @@ def doupdate():
bit = "_x86"
_6432 = "32"
shutil.copy(
rf".\files\plugins\shareddllproxy{_6432}.exe",
r".\files\plugins\shareddllproxy{}.exe".format(_6432),
gobject.getcachedir("Updater.exe"),
)
subprocess.Popen(
rf".\cache\Updater.exe update {int(gobject.baseobject.istriggertoupdate)} .\cache\update\LunaTranslator{bit} "
+ dynamiclink("{main_server}")
r".\cache\Updater.exe update {} .\cache\update\LunaTranslator{} {}".format(
int(gobject.baseobject.istriggertoupdate), bit, dynamiclink("{main_server}")
)
)