From 3613bda01f908e4bf82c28762e9b26835b4e6a4d Mon Sep 17 00:00:00 2001 From: Nelson Chen Date: Fri, 22 Sep 2023 19:58:19 +0000 Subject: [PATCH] Generate datetime str --- generate.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/generate.py b/generate.py index c27bd32cef8213..a187606e200585 100644 --- a/generate.py +++ b/generate.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import ast +import datetime import logging import os import pprint @@ -125,7 +126,11 @@ def generate_branch(base, car): def generate_html(base_cars_base_branches): - header = """ + # Generate a date for the page + now = datetime.datetime.now() + now_str = now.strftime("%Y-%m-%d %H:%M:%S UTC") + + header = f""" Hardcoded Fingerprint comma.ai openpilot Continuous Micro-Fork Generator branches @@ -145,6 +150,9 @@ def generate_html(base_cars_base_branches): ⚠️ Only to be used as a last resort! ⚠️

+This page was generated on {now_str}. +

+

This is a list of all the branches with hardcoded fingerprints generated by the Hardcoded Fingerprint comma.ai openpilot Continuous Micro-Fork Generator.