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
24ae7350
Commit
24ae7350
authored
Jan 05, 2020
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix # #1127 (user template show random books in detail view not saved)
parent
c60277f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
admin.py
cps/admin.py
+2
-0
No files found.
cps/admin.py
View file @
24ae7350
...
...
@@ -178,6 +178,8 @@ def update_view_configuration():
config
.
config_default_show
=
sum
(
int
(
k
[
5
:])
for
k
in
to_save
if
k
.
startswith
(
'show_'
))
if
"Show_mature_content"
in
to_save
:
config
.
config_default_show
|=
constants
.
MATURE_CONTENT
if
"Show_detail_random"
in
to_save
:
config
.
config_default_show
|=
constants
.
DETAIL_RANDOM
config
.
save
()
flash
(
_
(
u"Calibre-Web configuration updated"
),
category
=
"success"
)
...
...
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