fix(api): correct extraction of commit date from gitea branches api

This commit is contained in:
2026-02-22 22:57:07 +01:00
parent b955e4f464
commit c3ab7a5a67

View File

@@ -104,8 +104,8 @@ async def check_for_updates(config: Any) -> dict:
"tag": latest_tag, "tag": latest_tag,
"commit": short_sha, "commit": short_sha,
"commit_full": full_sha, "commit_full": full_sha,
"message": latest_commit.get("commit", {}).get("message", "").split("\n")[0], "message": latest_commit.get("commit", {}).get("message", "").split("\n")[0] if latest_commit.get("commit") else "",
"date": latest_commit.get("commit", {}).get("committer", {}).get("date", ""), "date": latest_commit.get("timestamp", ""),
"branch": branch, "branch": branch,
} }