Skip to content

Commit

Permalink
build: adding support python 3.11 and 3.12.
Browse files Browse the repository at this point in the history
  • Loading branch information
awais786 committed Feb 21, 2024
1 parent e318200 commit 58cfbf2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion search/elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def search(self,
exclude_ids=None,
use_field_match=False,
log_search_params=False,
**kwargs):
**kwargs): # pylint: disable=arguments-renamed
"""
Implements call to search the index for the desired content.
Expand Down
2 changes: 0 additions & 2 deletions search/filter_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ class SearchFilterGenerator:
Users of this search app will override this class and update setting for SEARCH_FILTER_GENERATOR
"""

# disabling pylint violations because overriders will want to use these
# pylint: disable=unused-argument, no-self-use
def filter_dictionary(self, **kwargs):
""" base implementation which filters via start_date """
return {"start_date": DateRange(None, datetime.utcnow())}
Expand Down
4 changes: 2 additions & 2 deletions search/result_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def decorate_matches(match_in, match_word):
)
return match_in

def should_remove(self, user): # pylint: disable=unused-argument, no-self-use
def should_remove(self, user):
"""
Override this in a class in order to add in last-chance access checks to the search process
Your application will want to make this decision
Expand Down Expand Up @@ -115,7 +115,7 @@ def process_result(cls, dictionary, match_phrase, user):
try:
srp.add_properties()
# protect around any problems introduced by subclasses within their properties
except Exception as ex: # pylint: disable=broad-except
except Exception as ex:
log.exception("error processing properties for %s - %s: will remove from results",
json.dumps(dictionary, cls=DjangoJSONEncoder), str(ex))
return None
Expand Down

0 comments on commit 58cfbf2

Please sign in to comment.