Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
test123456654321 committed Oct 26, 2024
1 parent dfbe50d commit fa1b5ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/LunaTranslator/cishu/jisho.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def paradown(self, word, key, saver):
)
stl = requests.get(ss.group()[6:-1], proxies=self.proxy).text
saver["style"] = stl
saver["primary"] = get_element_by("id", "main_results", res) + res.replace(
saver["primary"] = get_element_by("id", "result_area", res) + res.replace(
get_element_by("id", "main_results", res),
get_element_by("id", "primary", res),
)
Expand All @@ -154,6 +154,8 @@ def search(self, word):
res.append(("Words", saver["primary"]))
if saver.get("secondary"):
res.append(("Others", saver["secondary"]))
if not res:
return
return "<style>{}</style>".format(
saver.get("style", "")
) + self.generatehtml_tabswitch(res)
2 changes: 1 addition & 1 deletion src/plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ include(generate_product_version)

set(VERSION_MAJOR 5)
set(VERSION_MINOR 50)
set(VERSION_PATCH 3)
set(VERSION_PATCH 4)

add_library(pch pch.cpp)
target_precompile_headers(pch PUBLIC pch.h)
Expand Down

0 comments on commit fa1b5ae

Please sign in to comment.