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():