mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 06:03:50 +01:00
docstring
This commit is contained in:
parent
3cf9948b8d
commit
b62da463e1
1 changed files with 10 additions and 0 deletions
|
@ -82,6 +82,16 @@ class SearchHandler(BaseHandler):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def search(self, user, content):
|
def search(self, user, content):
|
||||||
|
"""Performs a full text search for a user.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
user (UserID)
|
||||||
|
content (dict): Search parameters
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
dict to be returned to the client with results of search
|
||||||
|
"""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
search_term = content["search_categories"]["room_events"]["search_term"]
|
search_term = content["search_categories"]["room_events"]["search_term"]
|
||||||
keys = content["search_categories"]["room_events"].get("keys", [
|
keys = content["search_categories"]["room_events"].get("keys", [
|
||||||
|
|
Loading…
Reference in a new issue