mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2026-02-04 15:10:32 -07:00
Refined and Enhanced Global Search Bar
This commit is contained in:
@@ -1484,6 +1484,9 @@ def search_suggest():
|
||||
limit = 5
|
||||
|
||||
q_lc = q.lower()
|
||||
# Do not suggest on very short queries to avoid dumping all rows
|
||||
if len(q_lc) < 3:
|
||||
return jsonify({"field": field, "q": q, "devices": [], "sites": []})
|
||||
|
||||
device_fields = {
|
||||
"hostname": "hostname",
|
||||
|
||||
Reference in New Issue
Block a user