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
436f60ca
Commit
436f60ca
authored
Mar 21, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactored some functions
parent
e9530eda
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
132 additions
and
104 deletions
+132
-104
admin.py
cps/admin.py
+1
-1
editbooks.py
cps/editbooks.py
+131
-103
No files found.
cps/admin.py
View file @
436f60ca
...
@@ -345,7 +345,7 @@ def edit_list_user(param):
...
@@ -345,7 +345,7 @@ def edit_list_user(param):
else
:
else
:
log
.
error
(
u"Found an existing account for this e-mail address."
)
log
.
error
(
u"Found an existing account for this e-mail address."
)
return
_
(
u"Found an existing account for this e-mail address."
),
400
return
_
(
u"Found an existing account for this e-mail address."
),
400
elif
param
==
'kindle_mail'
:
elif
param
==
'kindle_mail'
:
user
.
kindle_mail
=
vals
[
'value'
]
user
.
kindle_mail
=
vals
[
'value'
]
elif
param
==
'role'
:
elif
param
==
'role'
:
if
vals
[
'value'
]
==
'true'
:
if
vals
[
'value'
]
==
'true'
:
...
...
cps/editbooks.py
View file @
436f60ca
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