Skip to content

Commit

Permalink
webapp: add asterisks to glob search
Browse files Browse the repository at this point in the history
  • Loading branch information
aiooss-anssi committed Jul 9, 2024
1 parent 44f1dc9 commit 0f456d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webapp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def api_flow_list(request):
if search:
cursor = await payload_database.execute(
"SELECT flow_id FROM raw WHERE blob GLOB ?1",
(search,),
(f"*{search}*",),
)
rows = await cursor.fetchall()
search_fid = [r["flow_id"] for r in rows]
Expand Down
2 changes: 1 addition & 1 deletion webapp/templates/index.html.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<span class="input-group-text">
Search
</span>
<input type="text" class="form-control" placeholder="glob, e.g. '?PNG*'" id="filter-search">
<input type="text" class="form-control" placeholder="glob, e.g. 'ex?mple'" id="filter-search">
</div>
<div id="filter-tag"></div>
</div>
Expand Down

0 comments on commit 0f456d4

Please sign in to comment.