diff options
author | Frederick Yin <fkfd@macaw.me> | 2020-06-14 12:00:40 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@macaw.me> | 2020-06-14 12:00:40 +0800 |
commit | ee8f25fd963dec48b31ff4072afd2c95f24d518e (patch) | |
tree | 5e9ab1b341cbded303a8875d0523bb809e666938 /git-gmi/cgi.py | |
parent | c84755a652ed4459ae53f51f04de11756ca376d2 (diff) |
Redirect to summary
Diffstat (limited to 'git-gmi/cgi.py')
-rw-r--r-- | git-gmi/cgi.py | 5 |
1 files changed, 3 insertions, 2 deletions
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: |