longitudinal_maneuvers fix warning (#33980)

This commit is contained in:
royjr 2024-11-10 12:29:27 -05:00 committed by GitHub
parent 5b0994c53c
commit e243acac3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@ def report(platform, route, _description, CP, ID, maneuvers):
buffer = io.BytesIO()
fig.savefig(buffer, format='webp')
plt.close(fig)
buffer.seek(0)
builder.append(f"<img src='data:image/webp;base64,{base64.b64encode(buffer.getvalue()).decode()}' style='width:100%; max-width:800px;'>\n")
builder.append("</details>\n")