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
a798dc94
Commit
a798dc94
authored
Oct 01, 2018
by
Virgil Grigoras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Satisfy "Codacy/PR Quality Review"
parent
1ac9b3d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
web.py
cps/web.py
+1
-1
No files found.
cps/web.py
View file @
a798dc94
...
@@ -533,7 +533,7 @@ def fill_indexpage(page, database, db_filter, order, *join):
...
@@ -533,7 +533,7 @@ def fill_indexpage(page, database, db_filter, order, *join):
# if elements have to be deleted, because they are no longer used
# if elements have to be deleted, because they are no longer used
def
modify_database_object
(
input_elements
,
db_book_object
,
db_object
,
db_session
,
db_type
):
def
modify_database_object
(
input_elements
,
db_book_object
,
db_object
,
db_session
,
db_type
):
# passing input_elements not as a list may lead to undesired results
# passing input_elements not as a list may lead to undesired results
if
type
(
input_elements
)
is
not
list
:
if
not
isinstance
(
input_elements
,
list
)
:
raise
TypeError
(
str
(
input_elements
)
+
" should be passed as a list"
)
raise
TypeError
(
str
(
input_elements
)
+
" should be passed as a list"
)
input_elements
=
[
x
for
x
in
input_elements
if
x
!=
''
]
input_elements
=
[
x
for
x
in
input_elements
if
x
!=
''
]
...
...
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