commit 29cd802f769378fc5bafa6ceb0167d21a08a5416 from: Aleksey Ryndin date: Wed Oct 09 16:29:10 2024 UTC Fix: format empty page (only one menu) commit - 2ff52a39e335327ff1b100b77b4d96aef25cf12e commit + 29cd802f769378fc5bafa6ceb0167d21a08a5416 blob - 78435b93a781e48ab7c2f97cc375720b07e954b4 blob + e1cacc77d7161cae12ff6b97c07687b769093640 --- lonk.py +++ lonk.py @@ -418,7 +418,8 @@ def page_convoy(db_con, client_id, lonk_url, honk_url) def page_search(db_con, client_id, lonk_url, honk_url): if not lonk_url.query: - print("10 What are we looking for?") + print("10 What are we looking for?\r") + return q = unquote(lonk_url.query) gethonks_answer = honk_url.do_get("gethonks", page="search", q=q) @@ -486,7 +487,8 @@ def print_gethonks(gethonks_answer, lonk_url, honk_url print("\r\n".join(lines)) print("\r") - _menu() + if gethonks_answer.get("honks"): + _menu() def new_client_stage_1_ask_server(lonk_url):