From 668353172f4874723f16063d08dedc2a9283331e Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Tue, 28 Jul 2020 21:36:16 +0800 Subject: Fix _generate_header calls --- git-gmi/git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git-gmi') 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" -- cgit v1.2.3