a
    (g                     @   s8   d dl Z d dlmZ d dlmZ d dlmZ dd ZdS )    N)process_report)get_ticker_for_directory)Configc                 C   s   t | }|std|   d S t| }tj|d}tj|dd t|D ]<}|	drN|	dsNtj||}td|  t
| qNd S )Nu9   Nie można przetworzyć raportów - brak tickera dla CIK Zhuman_readableT)exist_okz.txtz_human_readable.txtzPrzetwarzanie raportu: )r   printr   Zget_company_dirospathjoinmakedirslistdirendswithr   )ZcikZtickerZcompany_dirZhuman_readable_dirfileZreport_path r   8/var/www/html/inwestownie/raporty/src/process_reports.pyprocess_all_reports   s    
r   )r   Zsrc.sec_human_readable_parserr   Zsrc.getreportr   Zconfigr   r   r   r   r   r   <module>   s   