diff options
author | Frederick Yin <fkfd@macaw.me> | 2020-07-28 21:36:16 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@macaw.me> | 2020-07-28 21:36:16 +0800 |
commit | 668353172f4874723f16063d08dedc2a9283331e (patch) | |
tree | 79aef8d1bd3b57dd913cc3072a6a46e36657eedd /git-gmi/git.py | |
parent | 9ed6b48a00d71c5a37e0ff5f182fc45022bdc879 (diff) |
Fix _generate_header calls
Diffstat (limited to 'git-gmi/git.py')
-rw-r--r-- | git-gmi/git.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-gmi/git.py b/git-gmi/git.py index d65c937..8a91f0b 100644 --- a/git-gmi/git.py +++ b/git-gmi/git.py @@ -305,7 +305,7 @@ class GitGmiRepo: items = len(contents) response = ( f"{STATUS_SUCCESS} {META_GEMINI}\r\n" - + self.generate_header() + + self._generate_header() + f"## {self.name}{'/' if location else ''}{'/'.join(location)}/" f" | {items} {'items' if items > 1 else 'item'}\n\n" ) @@ -340,7 +340,7 @@ class GitGmiRepo: blob = self._get_blob(branch, location) response = ( f"{STATUS_SUCCESS} {META_GEMINI}\r\n" - + self.generate_header() + + self._generate_header() + f"## {self.name}/{'/'.join(location)} | {convert_filesize(blob.size)}\n\n" f"=> {blob.name}?raw view raw\n\n" f"```\n" |