9 lines
No EOL
184 B
Python
9 lines
No EOL
184 B
Python
from datetime import datetime
|
|
|
|
def utility_processor():
|
|
return {
|
|
'current_year': datetime.now().year
|
|
}
|
|
|
|
def init_app(app):
|
|
app.context_processor(utility_processor) |