mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-27 15:44:12 +08:00
format
This commit is contained in:
parent
2cbdb8273f
commit
d42ab9cf77
@ -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
|
||||
|
||||
|
@ -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}")
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user