From 01abf0710b25e9cc0e8883fe5e2462e6d9d14c1f Mon Sep 17 00:00:00 2001

From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= jaakko.keranen@iki.fi

Date: Sun, 29 Dec 2024 20:19:34 +0200

Subject: [PATCH 1/1] Fixed Git commits


booster.py | 14 ++++++++------

1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/booster.py b/booster.py

index 2c9568b..41c735e 100755

--- a/booster.py

+++ b/booster.py

@@ -122,8 +122,8 @@ class Tinylog:

 def write(self):

     with open(self.path, 'w') as f:

         f.write(self.render(allow_edit=False))

 def add(self, timestamp, entry):

     entry = entry.strip()

@@ -171,10 +171,10 @@ class Tinylog:

                 output += f'# {self.title}\n\n'

             if self.info:

                 output += self.info + '\n'

             today = datetime.datetime.now()

             cur_month = None

             # Archives are linked to before the entries.

             for ts in archived:

@@ -187,7 +187,8 @@ class Tinylog:

                     output += f'=> gemini://{self.base_url}{cur_month} Archived: {label}\n'

             if self.author or self.avatar:

                 output += f'avatar: {self.avatar}\n'

             if is_editable:

                 output += f'=> gemini://{self.base_url}/edit Edit metadata\n'

@@ -235,7 +236,7 @@ SITE_URL = CONFIG['site_url']

GIT_COMMAND = CONFIG['git']

FILES_ROOT = append_slash(CONFIG['files']['root'])

AUTHORIZED = CONFIG['authorized'] # cert/pubkey fingerprint(s)

-MAX_COUNT = 2

+MAX_COUNT = 25

req_protocol = os.getenv('SERVER_PROTOCOL')

req_identity = os.getenv('REMOTE_IDENT').split(';') if os.getenv('REMOTE_IDENT') else [None, None]

@@ -288,6 +289,7 @@ for file_group in CONFIG['files']:

 file_path = os.path.normpath(pjoin(FILES_ROOT, path))

 if is_tinylog:

     tinylog = Tinylog(pjoin(FILES_ROOT, group['tinylog']),

                       editable=is_authorized,

                       base_url=SITE_URL.replace('gemini://', '') + auth_prefix)

@@ -410,7 +412,7 @@ for file_group in CONFIG['files']:

         report_error(30, 'gemini://' + tinylog.base_url +

             (time.strftime(Tinylog.PATH_FORMAT, time.localtime(entry_ts))

                 if entry_ts else ''))

     sys.exit(0)

 if path.startswith(auth_prefix):

--

2.25.1

Proxy Information
Original URL
gemini://git.skyjake.fi/booster/main/patch/01abf0710b25e9cc0e8883fe5e2462e6d9d14c1f.patch
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
24.663868 milliseconds
Gemini-to-HTML Time
0.812517 milliseconds

This content has been proxied by September (ba2dc).