2021-08-11 17:01:19 +00:00
|
|
|
from files.__main__ import app
|
2021-07-21 01:12:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
@app.template_filter("full_link")
|
|
|
|
def full_link(url):
|
|
|
|
|
|
|
|
return f"https://{app.config['SERVER_NAME']}{url}"
|
|
|
|
|
|
|
|
|
|
|
|
@app.template_filter("app_config")
|
|
|
|
def app_config(x):
|
2021-07-25 14:23:53 +00:00
|
|
|
return app.config.get(x)
|