
    f	i                         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          fdefd            ZdS )	    )	APIRouterQuery)JSONResponse)
open_mysqlget_mysql_credsget_pingconf_varsz/threadparty.artnumc                    t          t                    5 }|                    d          }|                    d| f           |                                }|                    d| f           |                                }i }|r|d         ||d         <   |D ]}|d         ||d         <   d |                                D             }t          |          cd d d            S # 1 swxY w Y   d S )	NT)
dictionaryz
            SELECT a.HandleID, h.Handle as Name
            FROM Articles a
            JOIN Handles h ON a.HandleID = h.HandleID
            WHERE a.ArtNum = %s
        z
            SELECT DISTINCT c.HandleID, h.Handle as Name
            FROM Comments c
            JOIN Handles h ON c.HandleID = h.HandleID
            WHERE c.ArtNum = %s
        NameHandleIDc                     g | ]
\  }}||d S ))r   r    ).0kvs      ./wd/v2025.freedom4um.com/routes/threadparty.py
<listcomp>z thread_party.<locals>.<listcomp>(   s$    III1q!,,III    )content)r   mysql_credscursorexecutefetchonefetchallitemsr   )r	   connr   article_poster
commentersuser_mapuresults           r   thread_partyr#   
   sa   	K	 	  ,D-- 	 
 Y	 	 	  ** 	 
 Y	 	 	 __&&
  	J3A&3IH^J/0 	0 	0A&'iHQz]##II8H8HIIIF+++=, , , , , , , , , , , , , , , , , ,s   CC''C+.C+N)fastapir   r   fastapi.responsesr   utils.pingdatar   r   r   routerPingConfr   getintr#   r   r   r   <module>r+      s    $ $ $ $ $ $ $ $ * * * * * * I I I I I I I I I I	oh''N$uSzz , , , , , , , ,r   