From ee8f25fd963dec48b31ff4072afd2c95f24d518e Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Sun, 14 Jun 2020 12:00:40 +0800 Subject: Redirect to summary --- git-gmi/cgi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'git-gmi/cgi.py') diff --git a/git-gmi/cgi.py b/git-gmi/cgi.py index 9f0e1a9..76f1522 100644 --- a/git-gmi/cgi.py +++ b/git-gmi/cgi.py @@ -20,7 +20,7 @@ def handle_cgi_request(path: str): print(f"{STATUS_SUCCESS} {META_GEMINI}") # welcome page print("Welcome to the git.gmi demo") print("Available repositories:") - print("\n".join([f"=> {dir}/summary" for dir in listdir(GIT_CATALOG)])) + print("\n".join([f"=> {dir}/" for dir in listdir(GIT_CATALOG)])) return try: @@ -32,7 +32,8 @@ def handle_cgi_request(path: str): if len(path_trace) > 1: view = path_trace[1] # e.g. summary, tree, log else: - pass # TODO: summary + print("31 summary") + return if view == "summary": try: -- cgit v1.2.3