Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
slide-index
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Welter, Felix
slide-index
Commits
f06dd894
Commit
f06dd894
authored
Aug 31, 2020
by
felixwelter
Browse files
Options
Downloads
Patches
Plain Diff
Change query url
parent
61a6d94f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app.py
+2
-2
2 additions, 2 deletions
app.py
templates/index.html
+2
-2
2 additions, 2 deletions
templates/index.html
with
4 additions
and
4 deletions
app.py
+
2
−
2
View file @
f06dd894
...
@@ -46,11 +46,11 @@ def upload():
...
@@ -46,11 +46,11 @@ def upload():
del
index
del
index
return
redirect
(
'
/
'
)
return
redirect
(
'
/
'
)
@app.route
(
"
/
query
"
)
@app.route
(
"
/
search
"
)
def
query
():
def
query
():
try
:
try
:
index
=
SearchIndex
()
index
=
SearchIndex
()
query
=
request
.
args
.
get
(
"
qu
er
y
"
)
query
=
request
.
args
.
get
(
"
t
er
m
"
)
result
=
index
.
search
(
query
)
result
=
index
.
search
(
query
)
#pdf = pdfplumber.open(result["path"])
#pdf = pdfplumber.open(result["path"])
#page = pdf.pages[result["page"]]
#page = pdf.pages[result["page"]]
...
...
This diff is collapsed.
Click to expand it.
templates/index.html
+
2
−
2
View file @
f06dd894
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
</ul>
{% endfor %}
</ul>
{% endfor %}
<h1>
Query
</h1>
<h1>
Query
</h1>
<form
action=
"
query
"
method=
"get"
>
<form
action=
"
search
"
method=
"get"
>
<input
name=
"
qu
er
y
"
>
<input
name=
"
t
er
m
"
>
<input
type=
"submit"
value=
"Query"
>
<input
type=
"submit"
value=
"Query"
>
</form>
</form>
</body>
</body>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment