Add page generation time to footer

This commit is contained in:
Xevion
2022-03-27 05:06:07 -05:00
parent 5338797013
commit bd35d40c48
2 changed files with 5 additions and 1 deletions

View File

@@ -50,6 +50,10 @@ def create_app():
db.session.add(current_user)
db.session.commit()
@app.context_processor
def inject():
return dict(now=datetime.utcnow)
# CLI commands setup
@app.shell_context_processor
def shell_context():

View File

@@ -10,6 +10,6 @@
<li><a href="/">WXYZ</a></li>
</ul>
<p class="copyright">
<a href="/">©2022 Runnerspace.live All Rights Reserved.</a>
<a href="/">©2022 Runnerspace.live All Rights Reserved.</a> | Served at {{ now().isoformat(sep=' ', timespec='milliseconds') }}
</p>
</footer>