Commit Diff


commit - ed872adb6974ecbf7e9f9b2bfe529274fcc376b0
commit + 4bf100ffe6f78906da257552cdf0dabbb69758e1
blob - 32fb137f1cb25e44105534aabd1a7db4d08bcf40
blob + 4e71bf2d6bbd5ef44e9012b2d2a3a79be27b6f70
--- lonk.py
+++ lonk.py
@@ -247,6 +247,7 @@ def print_menu(lonk_url, honk_url, gethonks_answer=Non
     print("## 📝 Menu\r")
     print(f"=> {lonk_url.build('newhonk')} new honk\r")
     print(f"=> {lonk_url.build([])} lonk home\r")
+    print(f"=> {lonk_url.build('first')} first class only\r")
 
     if gethonks_answer:
         line = f"=> {lonk_url.build('atme')} @me"
@@ -379,6 +380,13 @@ def page_lonk(lonk_url, honk_url):
         gethonks_answer["honks"] += list(item.iterate_honks())
 
     print_header("lonk home")
+    print_gethonks(gethonks_answer, lonk_url, honk_url)
+
+
+def page_first(lonk_url, honk_url):
+    gethonks_answer = honk_url.get("gethonks", page="home")
+    gethonks_answer["honks"] = [honk for honk in gethonks_answer.pop("honks") if honk["What"] in {"bonked", "honked"}]
+    print_header("first class only")
     print_gethonks(gethonks_answer, lonk_url, honk_url)
 
 
@@ -599,6 +607,8 @@ def vgi(cert_hash, raw_url):
     lonk_url = LonkUrl(raw_url)
     if lonk_url.page == "lonk":
         authenticated(cert_hash, lonk_url, page_lonk)
+    elif lonk_url.page == "first":
+        authenticated(cert_hash, lonk_url, page_first)
     elif lonk_url.page == "convoy":
         authenticated(cert_hash, lonk_url, page_convoy)
     elif lonk_url.page == "atme":