diff mbox series

[yocto-autobuilder-helper] scripts/abint: add a footer showing when the report was generated

Message ID 20240213111745.1655345-1-ross.burton@arm.com
State New
Headers show
Series [yocto-autobuilder-helper] scripts/abint: add a footer showing when the report was generated | expand

Commit Message

Ross Burton Feb. 13, 2024, 11:17 a.m. UTC
From: Ross Burton <ross.burton@arm.com>

---
 scripts/abint/abint.html.j2 | 6 ++++++
 scripts/abint/abint.py      | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/scripts/abint/abint.html.j2 b/scripts/abint/abint.html.j2
index 1770a98..f531649 100644
--- a/scripts/abint/abint.html.j2
+++ b/scripts/abint/abint.html.j2
@@ -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>
\ No newline at end of file
diff --git a/scripts/abint/abint.py b/scripts/abint/abint.py
index 19567e5..f4cb8b2 100755
--- a/scripts/abint/abint.py
+++ b/scripts/abint/abint.py
@@ -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()