mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
format
This commit is contained in:
parent
2cbdb8273f
commit
d42ab9cf77
@ -2608,14 +2608,14 @@ if (content.style.display === 'block') {
|
|||||||
extra = "display: none;"
|
extra = "display: none;"
|
||||||
uid = str(uuid.uuid4())
|
uid = str(uuid.uuid4())
|
||||||
lis.append(
|
lis.append(
|
||||||
rf"""<li><div class="collapsible-header" id="{uid}" onclick="mdict_flowstyle_clickcallback('{uid}')">{title}</div><div class="collapsible-content" style="{extra}">
|
r"""<li><div class="collapsible-header" id="{}" onclick="mdict_flowstyle_clickcallback('{}')">{}</div><div class="collapsible-content" style="{}">
|
||||||
{res}
|
{}
|
||||||
</div></li>"""
|
</div></li>""".format(uid,uid,title,extra,res)
|
||||||
)
|
)
|
||||||
content += rf"""
|
content += r"""
|
||||||
<ul class="collapsible-list">
|
<ul class="collapsible-list">
|
||||||
{''.join(lis)}
|
{}
|
||||||
</ul>"""
|
</ul>""".format(''.join(lis))
|
||||||
|
|
||||||
return content
|
return content
|
||||||
|
|
||||||
|
@ -78,12 +78,13 @@ def doupdate():
|
|||||||
bit = "_x86"
|
bit = "_x86"
|
||||||
_6432 = "32"
|
_6432 = "32"
|
||||||
shutil.copy(
|
shutil.copy(
|
||||||
rf".\files\plugins\shareddllproxy{_6432}.exe",
|
r".\files\plugins\shareddllproxy{}.exe".format(_6432),
|
||||||
gobject.getcachedir("Updater.exe"),
|
gobject.getcachedir("Updater.exe"),
|
||||||
)
|
)
|
||||||
subprocess.Popen(
|
subprocess.Popen(
|
||||||
rf".\cache\Updater.exe update {int(gobject.baseobject.istriggertoupdate)} .\cache\update\LunaTranslator{bit} "
|
r".\cache\Updater.exe update {} .\cache\update\LunaTranslator{} {}".format(
|
||||||
+ dynamiclink("{main_server}")
|
int(gobject.baseobject.istriggertoupdate), bit, dynamiclink("{main_server}")
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user