
    6Pi%                         d dl mZmZ d dlmZ d dlmZmZmZ  e            Z	 e            Z
 ee
          Ze	                    d           edd          fdefd	            Zd
S )    )	APIRouterQuery)JSONResponse)
open_mysqlget_mysql_credsget_pingconf_varsz/usersearch.   )
min_lengthqc                 
   t          t                    5 }|                    d          }d}|                    || dz   f           |                                }t          |          cddd           S # 1 swxY w Y   dS )zIReturn up to 5 users whose names start with the query (case-insensitive).T)
dictionaryz
            SELECT distinct HandleID, Handle AS Name
            FROM Handles
            WHERE Handle LIKE %s
            ORDER BY Handle
            LIMIT 3
        %)contentN)r   mysql_credscursorexecutefetchallr   )r   connr   sqluserss        -/wd/v2025.freedom4um.com/routes/usersearch.py
usersearchr   	   s     
K	 	  +D-- 	sQWJ'''!!E***+ + + + + + + + + + + + + + + + + +s   AA88A<?A<N)fastapir   r   fastapi.responsesr   utils.pingdatar   r   r   routerPingConfr   getstrr        r   <module>r"      s    $ $ $ $ $ $ $ $ * * * * * * I I I I I I I I I I	oh''Mca000 + +# + + + + + +r!   