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
06347b7e
Commit
06347b7e
authored
May 14, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfixes from testrun
parent
6bc426b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
search.html
cps/templates/search.html
+1
-1
web.py
cps/web.py
+0
-2
No files found.
cps/templates/search.html
View file @
06347b7e
...
...
@@ -16,7 +16,7 @@
</button>
<ul
id=
"add-to-shelves"
class=
"dropdown-menu"
aria-labelledby=
"add-to-shelf"
>
{% for shelf in g.shelves_access %}
{% if not shelf.i
d in books_shelfs and ( not shelf.is_public or g.user.role_edit_shelfs()
) %}
{% if not shelf.i
s_public or g.user.role_edit_shelfs(
) %}
<li><a
href=
"{{ url_for('shelf.search_to_shelf', shelf_id=shelf.id) }}"
>
{{shelf.name}}{% if shelf.is_public == 1 %} {{_('(Public)')}}{% endif %}
</a></li>
{% endif %}
{%endfor%}
...
...
cps/web.py
View file @
06347b7e
...
...
@@ -1052,9 +1052,7 @@ def reconnect():
def
search
():
term
=
request
.
args
.
get
(
"query"
)
if
term
:
# flask_session['query'] = json.dumps(request.form)
return
redirect
(
url_for
(
'web.books_list'
,
data
=
"search"
,
sort_param
=
'stored'
,
query
=
term
))
# return render_search_results(term, 0, None, config.config_books_per_page)
else
:
return
render_title_template
(
'search.html'
,
searchterm
=
""
,
...
...
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