Skip to content

Commit 5857d2f

Browse files
committed
fmt
1 parent 0857956 commit 5857d2f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

generate.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def generate_branch(base, car):
123123
)
124124
return branch_name
125125

126+
126127
def generate_html(base_cars_base_branches):
127128
header = """
128129
<html>
@@ -160,7 +161,7 @@ def generate_html(base_cars_base_branches):
160161
body += f"<li><code>{car}</code>"
161162
body += f"<ul>"
162163
body += f"<li>Custom Software URL: <code>https://installer.comma.ai/hardcoded-fp/{base_cars_base_branches[base][car]}</code></li>"
163-
body += f"<li><a href=\"https://github.com/hardcoded-fp/openpilot/tree/{base_cars_base_branches[base][car]}\">View on GitHub</a></li>"
164+
body += f'<li><a href="/hardcoded-fp/openpilot/tree/{base_cars_base_branches[base][car]}">View on GitHub</a></li>'
164165
body += f"</ul>"
165166
body += f"</li>"
166167

@@ -174,6 +175,7 @@ def generate_html(base_cars_base_branches):
174175
with open("pages/index.html", "w") as f:
175176
f.write(header + body + footer)
176177

178+
177179
def main(push=True):
178180
prepare_op_repo()
179181

@@ -205,6 +207,7 @@ def main(push=True):
205207
logging.info("Pushing branches to origin")
206208
os.system("cd comma_openpilot && git push origin --force --all")
207209

210+
208211
if __name__ == "__main__":
209212
# Check if args has dry run, if so, don't push
210213
import sys

0 commit comments

Comments
 (0)