Report version on error page
This commit is contained in:
parent
96838452a8
commit
0d6b8e55bc
2 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,7 @@ import json
|
|||
import os
|
||||
import re
|
||||
from . import utils
|
||||
from . import __version__
|
||||
basedir = os.path.dirname(__file__)
|
||||
app = FastAPI()
|
||||
app.mount("/static", StaticFiles(directory=basedir + "/static"), name="static")
|
||||
|
@ -19,6 +20,7 @@ template_env = jinja2.Environment(
|
|||
)
|
||||
|
||||
template_env.globals['convert_times'] = utils.convert_times
|
||||
template_env.globals['__version__'] = __version__
|
||||
|
||||
BASE_URL = "http://make.fangam.es"
|
||||
THUMB_URL = "https://images.make.fangam.es"
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
<details>
|
||||
<summary>More details</summary>
|
||||
<pre>{{ details }}</pre>
|
||||
<pre>Version: {{ __version__ }}</pre>
|
||||
</details>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue