Skip to content

Conversation

@PeeachPie
Copy link
Collaborator

No description provided.

Comment on lines 66 to 74
elif key == "username" or key == "full_name":
elif key == "username":
# Частичное совпадение
mongodb_query[key] = {"$regex": regex.escape(values[0], literal_spaces=True)}
elif key == "full_name":
# Частичное совпадение без учета регистра
mongodb_query[key] = {
"$regex": regex.escape(values[0], literal_spaces=True),
"$options": 'i'
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

объедините оба параметра username и full_name (как было ранее) для поиска без учета регистра - кажется, что для поиска по нику вводить символы нужного регистра тоже излишне

case_insensitive_search_414 for full_name filter
@HadronCollider
Copy link
Collaborator

Кажется, гитхаб немного сломался на этом месте - код вмержен в master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants