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
9356148e
Commit
9356148e
authored
Aug 06, 2019
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added more information about dependencies
parent
4be55285
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
about.py
cps/about.py
+5
-1
uploader.py
cps/uploader.py
+6
-1
No files found.
cps/about.py
View file @
9356148e
...
@@ -41,6 +41,8 @@ try:
...
@@ -41,6 +41,8 @@ try:
except
ImportError
:
except
ImportError
:
unidecode_version
=
_
(
u'not installed'
)
unidecode_version
=
_
(
u'not installed'
)
from
.
import
services
about
=
flask
.
Blueprint
(
'about'
,
__name__
)
about
=
flask
.
Blueprint
(
'about'
,
__name__
)
...
@@ -59,7 +61,9 @@ _VERSIONS = OrderedDict(
...
@@ -59,7 +61,9 @@ _VERSIONS = OrderedDict(
SQLite
=
sqlite3
.
sqlite_version
,
SQLite
=
sqlite3
.
sqlite_version
,
iso639
=
isoLanguages
.
__version__
,
iso639
=
isoLanguages
.
__version__
,
pytz
=
pytz
.
__version__
,
pytz
=
pytz
.
__version__
,
Unidecode
=
unidecode_version
Unidecode
=
unidecode_version
,
Flask_SimpleLDAP
=
_
(
u'installed'
)
if
bool
(
services
.
ldap
)
else
_
(
u'not installed'
),
Goodreads
=
_
(
u'installed'
)
if
bool
(
services
.
goodreads
)
else
_
(
u'not installed'
),
)
)
_VERSIONS
.
update
(
uploader
.
get_versions
())
_VERSIONS
.
update
(
uploader
.
get_versions
())
...
...
cps/uploader.py
View file @
9356148e
...
@@ -224,11 +224,16 @@ def get_versions():
...
@@ -224,11 +224,16 @@ def get_versions():
PILVersion
=
'v'
+
PILversion
PILVersion
=
'v'
+
PILversion
else
:
else
:
PILVersion
=
_
(
u'not installed'
)
PILVersion
=
_
(
u'not installed'
)
if
comic
.
use_comic_meta
:
ComicVersion
=
_
(
u'installed'
)
else
:
ComicVersion
=
_
(
u'not installed'
)
return
{
'Image Magick'
:
IVersion
,
return
{
'Image Magick'
:
IVersion
,
'PyPdf'
:
PVersion
,
'PyPdf'
:
PVersion
,
'lxml'
:
XVersion
,
'lxml'
:
XVersion
,
'Wand'
:
WVersion
,
'Wand'
:
WVersion
,
'Pillow'
:
PILVersion
}
'Pillow'
:
PILVersion
,
'Comic_API'
:
ComicVersion
}
def
upload
(
uploadfile
):
def
upload
(
uploadfile
):
...
...
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