Skip to content

Commit 3613bda

Browse files
authored
Generate datetime str
1 parent e3647a7 commit 3613bda

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

generate.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python3
22

33
import ast
4+
import datetime
45
import logging
56
import os
67
import pprint
@@ -125,7 +126,11 @@ def generate_branch(base, car):
125126

126127

127128
def generate_html(base_cars_base_branches):
128-
header = """
129+
# Generate a date for the page
130+
now = datetime.datetime.now()
131+
now_str = now.strftime("%Y-%m-%d %H:%M:%S UTC")
132+
133+
header = f"""
129134
<html>
130135
<head>
131136
<title>Hardcoded Fingerprint comma.ai openpilot Continuous Micro-Fork Generator branches</title>
@@ -145,6 +150,9 @@ def generate_html(base_cars_base_branches):
145150
⚠️ Only to be used as a last resort! ⚠️
146151
</p>
147152
<p>
153+
This page was generated on {now_str}.
154+
</p>
155+
<p>
148156
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>.
149157
</p>
150158
<p>

0 commit comments

Comments
 (0)