mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-08-15 23:33:19 +00:00
Remove silly lines
This commit is contained in:
@@ -291,9 +291,6 @@ def rewrite_natural_date_keywords(query: str, tz: tzinfo) -> str:
|
||||
return _FIELD_DATE_RE.sub(_replace, query)
|
||||
|
||||
|
||||
# ── normalize_query ──────────────────────────────────────────────────────────
|
||||
|
||||
|
||||
def normalize_query(query: str) -> str:
|
||||
"""
|
||||
Join comma-separated field values with AND, collapse whitespace.
|
||||
@@ -309,8 +306,6 @@ def normalize_query(query: str) -> str:
|
||||
return re.sub(r" {2,}", " ", query).strip()
|
||||
|
||||
|
||||
# ── build_permission_filter ──────────────────────────────────────────────────
|
||||
|
||||
_MAX_U64 = 2**64 - 1 # u64 max — used as inclusive upper bound for "any owner" range
|
||||
|
||||
|
||||
@@ -368,8 +363,6 @@ def build_permission_filter(
|
||||
return tantivy.Query.disjunction_max_query([no_owner, owned, shared])
|
||||
|
||||
|
||||
# ── parse_user_query (full pipeline) ─────────────────────────────────────────
|
||||
|
||||
DEFAULT_SEARCH_FIELDS = [
|
||||
"title",
|
||||
"content",
|
||||
|
||||
Reference in New Issue
Block a user