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
fb8b6310
Commit
fb8b6310
authored
Apr 30, 2020
by
OzzieIsaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix from tests
parent
b160a8de
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
386 additions
and
207 deletions
+386
-207
__init__.py
cps/__init__.py
+1
-4
ub.py
cps/ub.py
+1
-1
Calibre-Web TestSummary.html
test/Calibre-Web TestSummary.html
+384
-202
No files found.
cps/__init__.py
View file @
fb8b6310
...
...
@@ -95,10 +95,7 @@ def create_app():
log
.
info
(
'Starting Calibre Web...'
)
Principal
(
app
)
lm
.
init_app
(
app
)
if
os
.
environ
.
get
(
'FLASK_DEBUG'
):
app
.
secret_key
=
os
.
getenv
(
'SECRET_KEY'
,
'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT'
)
else
:
app
.
secret_key
=
os
.
getenv
(
'SECRET_KEY'
,
os
.
urandom
(
32
))
app
.
secret_key
=
os
.
getenv
(
'SECRET_KEY'
,
'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT'
)
web_server
.
init_app
(
app
,
config
)
db
.
setup_db
(
config
)
...
...
cps/ub.py
View file @
fb8b6310
...
...
@@ -106,7 +106,7 @@ def get_sidebar_config(kwargs=None):
sidebar
.
append
(
{
"glyph"
:
"glyphicon-trash"
,
"text"
:
_
(
'Archived Books'
),
"link"
:
'web.books_list'
,
"id"
:
"archived"
,
"visibility"
:
constants
.
SIDEBAR_ARCHIVED
,
'public'
:
(
not
g
.
user
.
is_anonymous
),
"page"
:
"archived"
,
"show_text"
:
_
(
'Show archived books'
),
"config_show"
:
True
})
"show_text"
:
_
(
'Show archived books'
),
"config_show"
:
content
})
return
sidebar
...
...
test/Calibre-Web TestSummary.html
100755 → 100644
View file @
fb8b6310
This diff is collapsed.
Click to expand it.
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