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
d5e453ed
Commit
d5e453ed
authored
Apr 01, 2021
by
cbartondock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added scholarly to libraries in about page
parent
26cc64bd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
about.py
cps/about.py
+7
-0
editbooks.py
cps/editbooks.py
+1
-1
No files found.
cps/about.py
View file @
d5e453ed
...
...
@@ -54,6 +54,12 @@ try:
except
ImportError
:
greenlet_Version
=
None
try
:
from
scholarly
import
scholarly
scholarly_version
=
_
(
u'installed'
)
except
ImportError
:
scholarly_version
=
_
(
u'not installed'
)
from
.
import
services
about
=
flask
.
Blueprint
(
'about'
,
__name__
)
...
...
@@ -79,6 +85,7 @@ _VERSIONS = OrderedDict(
iso639
=
isoLanguages
.
__version__
,
pytz
=
pytz
.
__version__
,
Unidecode
=
unidecode_version
,
Scholarly
=
scholarly_version
,
Flask_SimpleLDAP
=
u'installed'
if
bool
(
services
.
ldap
)
else
None
,
python_LDAP
=
services
.
ldapVersion
if
bool
(
services
.
ldapVersion
)
else
None
,
Goodreads
=
u'installed'
if
bool
(
services
.
goodreads_support
)
else
None
,
...
...
cps/editbooks.py
View file @
d5e453ed
...
...
@@ -1021,7 +1021,7 @@ def scholar_search(query):
break
return
Response
(
json
.
dumps
(
result
),
mimetype
=
'application/json'
)
else
:
return
'Scholarly not installed'
return
[]
...
...
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