~fkfd/git.gmi

668353172f4874723f16063d08dedc2a9283331e — Frederick Yin 5 months ago 9ed6b48 cache
Fix _generate_header calls
1 files changed, 2 insertions(+), 2 deletions(-)

M git-gmi/git.py
M git-gmi/git.py => git-gmi/git.py +2 -2
@@ 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"