summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@macaw.me>2020-06-14 12:00:40 +0800
committerFrederick Yin <fkfd@macaw.me>2020-06-14 12:00:40 +0800
commitee8f25fd963dec48b31ff4072afd2c95f24d518e (patch)
tree5e9ab1b341cbded303a8875d0523bb809e666938
parentc84755a652ed4459ae53f51f04de11756ca376d2 (diff)
Redirect to summary
-rw-r--r--git-gmi/cgi.py5
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: