U
    d                     @   sV   d dl mZmZmZ d dlZeeZejdddgddd Zed	krRej	d
d dS )    )Flaskrequestrender_templateN/GETPOST)methodsc               	   C   s`   t jdkrXt jd } t jd }t jd }t jd }t jd }tdd| ||||g d	S td
S )Nr   yearmonth
start_dateend_dateurlZpythonzfind_available_rooms.pyZ	Submittedz
index.html)r   methodform
subprocesscallr   )r	   r
   r   r   r    r   &/var/www/htdocs/find_rooms/flaskapp.pyindex   s    





r   __main__T)debug)
flaskr   r   r   r   __name__approuter   runr   r   r   r   <module>   s   
