feat: show render_date

This commit is contained in:
Ayo Ayco 2024-05-18 22:12:11 +02:00
parent 5409afddea
commit 33441f1e8e
2 changed files with 4 additions and 1 deletions

View file

@ -432,6 +432,7 @@
{{ attribution.owner }}
</p>
<p>Powered by <a href="https://ayco.io/sh/threads">/threads</a></p>
<p>Rendered on {{ render_date }}</p>
</footer>
</body>
</html>

View file

@ -47,7 +47,9 @@ def middleware():
@threads.route('/')
def home():
statuses = fetch_statuses()
return render_template('threads.html', threads=statuses, app=app, attribution=attribution)
currentDateTime = datetime.now()
date = currentDateTime.date()
return render_template('threads.html', threads=statuses, app=app, attribution=attribution, render_date=currentDateTime)
@threads.route('/<path:id>')
def thread(id):