Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
ffe3dd3d
Commit
ffe3dd3d
authored
Sep 29, 2018
by
OzzieIsaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show version of Werkzeug and Jinja2 in stats page
parent
c36b1ed5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
web.py
cps/web.py
+6
-2
No files found.
cps/web.py
View file @
ffe3dd3d
...
...
@@ -41,6 +41,8 @@ from flask import (Flask, render_template, request, Response, redirect,
url_for
,
send_from_directory
,
make_response
,
g
,
flash
,
abort
,
Markup
)
from
flask
import
__version__
as
flaskVersion
from
werkzeug
import
__version__
as
werkzeugVersion
from
jinja2
import
__version__
as
jinja2Version
import
cache_buster
import
ub
from
ub
import
config
...
...
@@ -1665,8 +1667,10 @@ def stats():
categorys
=
db
.
session
.
query
(
db
.
Tags
)
.
count
()
series
=
db
.
session
.
query
(
db
.
Series
)
.
count
()
versions
=
uploader
.
book_formats
.
get_versions
()
versions
[
'Babel'
]
=
'v'
+
babelVersion
versions
[
'Sqlalchemy'
]
=
'v'
+
sqlalchemyVersion
versions
[
'Babel'
]
=
'v'
+
babelVersion
versions
[
'Sqlalchemy'
]
=
'v'
+
sqlalchemyVersion
versions
[
'Werkzeug'
]
=
'v'
+
werkzeugVersion
versions
[
'Jinja2'
]
=
'v'
+
jinja2Version
versions
[
'Flask'
]
=
'v'
+
flaskVersion
versions
[
'Flask Login'
]
=
'v'
+
flask_loginVersion
versions
[
'Flask Principal'
]
=
'v'
+
flask_principalVersion
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment