feat: show render_date
This commit is contained in:
parent
5409afddea
commit
33441f1e8e
2 changed files with 4 additions and 1 deletions
|
@ -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>
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue