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
e60ef8fc
Commit
e60ef8fc
authored
Feb 23, 2020
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Calibre-web version visible in about section
Update Calibre-web Version info
parent
24d755b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
about.py
cps/about.py
+5
-2
constants.py
cps/constants.py
+1
-1
No files found.
cps/about.py
View file @
e60ef8fc
...
...
@@ -30,7 +30,7 @@ import babel, pytz, requests, sqlalchemy
import
werkzeug
,
flask
,
flask_login
,
flask_principal
,
jinja2
from
flask_babel
import
gettext
as
_
from
.
import
db
,
converter
,
uploader
,
server
,
isoLanguages
from
.
import
db
,
converter
,
uploader
,
server
,
isoLanguages
,
constants
from
.web
import
render_title_template
try
:
from
flask_login
import
__version__
as
flask_loginVersion
...
...
@@ -49,8 +49,11 @@ about = flask.Blueprint('about', __name__)
_VERSIONS
=
OrderedDict
(
Platform
=
'
'
.
join
(
platform
.
uname
()),
Platform
=
'
{0.system} {0.release} {0.version} {0.processor} {0.machine}'
.
format
(
platform
.
uname
()),
Python
=
sys
.
version
,
Calibre_Web
=
constants
.
STABLE_VERSION
[
'version'
]
+
' - '
+
constants
.
NIGHTLY_VERSION
[
0
]
.
replace
(
'
%
'
,
'
%%
'
)
+
' - '
+
constants
.
NIGHTLY_VERSION
[
1
]
.
replace
(
'
%
'
,
'
%%
'
),
WebServer
=
server
.
VERSION
,
Flask
=
flask
.
__version__
,
Flask_Login
=
flask_loginVersion
,
...
...
cps/constants.py
View file @
e60ef8fc
...
...
@@ -125,7 +125,7 @@ def selected_roles(dictionary):
BookMeta
=
namedtuple
(
'BookMeta'
,
'file_path, extension, title, author, cover, description, tags, series, '
'series_id, languages'
)
STABLE_VERSION
=
{
'version'
:
'0.6.
6
'
}
STABLE_VERSION
=
{
'version'
:
'0.6.
7 Beta
'
}
NIGHTLY_VERSION
=
{}
NIGHTLY_VERSION
[
0
]
=
'$Format:
%
H$'
...
...
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