From 078a716dc45038947976001d258d6033035691ef Mon Sep 17 00:00:00 2001 From: Steve0Greatness Date: Mon, 16 Sep 2024 20:55:56 -0700 Subject: [PATCH] RSS feed only gets one log --- .github/workflows/build-deploy.yml | 1 + main.py | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index d6c50a4..977e958 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -26,6 +26,7 @@ jobs: - name: Pull Changes run: | git pull + git log -10 - name: Build Site run: python main.py - name: Archive production artifacts diff --git a/main.py b/main.py index 5e5f858..6e9218a 100644 --- a/main.py +++ b/main.py @@ -10,7 +10,6 @@ Otherwise, a copy of this license can be found in the root directory of this project. """ - from git import Repo from RenderUtils import JinjaRender, RenderMarkdown, WIKI_PAGE_TEMPLATE, TOC, GetTemplate, MDWiki from os import listdir @@ -19,9 +18,9 @@ from config import OUTPUT_DIR, DIRECTORIES, ADD_FILES, COMMIT_PREFIX, COMMIT_SUFFIX, SITE_URL from distutils.dir_util import copy_tree as CopyDir from syntaxcolors import AddSyntaxColors -from datetime import datetime +from datetime import datetime, UTC as UTC_TIMESTAMP -repo = Repo(dirname(realpath(__file__))) +repo = Repo() Indexed = [] @@ -138,7 +137,7 @@ def main(): subject = message[0] author = commit.author.name - date = datetime.utcfromtimestamp(commit.authored_date).strftime("%Y-%m-%dt%H:%M:%Sz") + date = datetime.fromtimestamp(commit.authored_date, UTC_TIMESTAMP).strftime("%Y-%m-%dt%H:%M:%Sz") commitlink = COMMIT_PREFIX + str(commit) + COMMIT_SUFFIX