mirror of
https://github.com/Xevion/runnerspace.git
synced 2025-12-07 20:08:18 -06:00
Add page generation time to footer
This commit is contained in:
@@ -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():
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user