Skip to contentSkip to conversation

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

PATCH New [email protected] 1 participant 1 message Feb 13, 2024

lore
Share & tools
lore
#0 lore raw

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

From: Ross Burton <[email protected]>

---
 scripts/abint/abint.html.j2 | 6 ++++++
 scripts/abint/abint.py      | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)
scripts/abint/abint.html.j2 +6 -0
index 1770a98..f531649 100644
@@ -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
scripts/abint/abint.py +1 -1
index 19567e5..f4cb8b2 100755
@@ -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()
Signature · 1 line
2.34.1