We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15c64b4 commit a3a1fd2Copy full SHA for a3a1fd2
app/filters.py
@@ -63,10 +63,7 @@ def __create_simple_query(self, applicable_filters: dict) -> dict:
63
# Полное совпадение
64
logger.info("ELSE ID: " + str(values[0]))
65
mongodb_query[key] = ObjectId(values[0])
66
- elif key == "username":
67
- # Частичное совпадение
68
- mongodb_query[key] = {"$regex": regex.escape(values[0], literal_spaces=True)}
69
- elif key == "full_name":
+ elif key == "username" or key == "full_name":
70
# Частичное совпадение без учета регистра
71
mongodb_query[key] = {
72
"$regex": regex.escape(values[0], literal_spaces=True),
0 commit comments