mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-20 10:23:12 +00:00
Fix identation error
This commit is contained in:
parent
805cc450cc
commit
0347086ca4
1 changed files with 5 additions and 4 deletions
|
@ -210,8 +210,10 @@ def search_single_word(word, filters, user, start, end, user_state, aff, case_se
|
||||||
|
|
||||||
# Factures
|
# Factures
|
||||||
if "2" in aff:
|
if "2" in aff:
|
||||||
filter_factures = contains_filter("user__pseudo", word, case_sensitive)
|
filter_factures = (
|
||||||
& Q(user__state__in=user_state)
|
contains_filter("user__pseudo", word, case_sensitive)
|
||||||
|
& Q(user__state__in=user_state)
|
||||||
|
)
|
||||||
if start is not None:
|
if start is not None:
|
||||||
filter_factures &= Q(date__gte=start)
|
filter_factures &= Q(date__gte=start)
|
||||||
if end is not None:
|
if end is not None:
|
||||||
|
@ -266,7 +268,6 @@ def search_single_word(word, filters, user, start, end, user_state, aff, case_se
|
||||||
| contains_filter("building__name", word, case_sensitive)
|
| contains_filter("building__name", word, case_sensitive)
|
||||||
| Q(port__details=word)
|
| Q(port__details=word)
|
||||||
)
|
)
|
||||||
|
|
||||||
filters["rooms"] |= filter_rooms
|
filters["rooms"] |= filter_rooms
|
||||||
|
|
||||||
# Switch ports
|
# Switch ports
|
||||||
|
@ -376,7 +377,7 @@ def search_single_query(query, filters, user, start, end, user_state, aff):
|
||||||
return filters
|
return filters
|
||||||
|
|
||||||
# Handle standard queries
|
# Handle standard queries
|
||||||
return search_single_word(query.text, filters, user, start, end, user_state, aff, q.case_sensitive)
|
return search_single_word(query.text, filters, user, start, end, user_state, aff, query.case_sensitive)
|
||||||
|
|
||||||
|
|
||||||
def create_queries(query):
|
def create_queries(query):
|
||||||
|
|
Loading…
Reference in a new issue