Skip to content

Commit

Permalink
Generate datetime str
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonjchen authored Sep 22, 2023
1 parent e3647a7 commit 3613bda
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion generate.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python3

import ast
import datetime
import logging
import os
import pprint
Expand Down Expand Up @@ -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"""
<html>
<head>
<title>Hardcoded Fingerprint comma.ai openpilot Continuous Micro-Fork Generator branches</title>
Expand All @@ -145,6 +150,9 @@ def generate_html(base_cars_base_branches):
⚠️ Only to be used as a last resort! ⚠️
</p>
<p>
This page was generated on {now_str}.
</p>
<p>
This is a list of all the branches with hardcoded fingerprints generated by the <a href="https://github.com/hardcoded-fp/openpilot/"> Hardcoded Fingerprint comma.ai openpilot Continuous Micro-Fork Generator</a>.
</p>
<p>
Expand Down

0 comments on commit 3613bda

Please sign in to comment.