scripts/abint: add a footer showing when the report was generated

Signed-off-by: Ross Burton <ross.burton@arm.com>
This commit is contained in:
Ross Burton 2024-02-13 11:17:30 +00:00
parent 11b640e0bd
commit f12bfe787a
2 changed files with 7 additions and 1 deletions

View File

@ -76,6 +76,12 @@
</tbody>
</table>
</div>
<div class="container">
<footer class="py-4">
<p class="text-center text-body-secondary"><small>Generated {{now.format('YYYY-MM-DD HH:mm:ssZZ')}}.</small></p>
</footer>
</div>
</body>
</html>

View File

@ -125,7 +125,7 @@ def last_seen_report(data):
template = env.get_template("abint.html.j2")
with open("index.html", "w") as f:
start = arrow.utcnow().shift(weeks=-100).floor("week")
f.write(template.render(bugs=data, start=start))
f.write(template.render(bugs=data, start=start, now=arrow.now()))
data = get_data()