<s> import os <EOL> import csv <EOL> from park_api import env <EOL> def find_forecast ( lot_id , time_from , time_to ) : <EOL> try : <EOL> csv_path = os . path . join ( env . APP_ROOT , "<STR_LIT>" , lot_id + "<STR_LIT>" ) <EOL> with open ( csv_path ) as csvfile : <EOL> data = { <EOL> "<STR_LIT:version>" : <NUM_LIT:1.0> , <EOL> "<STR_LIT:data>" : { } <EOL> } <EOL> for row in csv . reader ( csvfile ) : <EOL> if time_from <= row [ <NUM_LIT:0> ] <= time_to : <EOL> data [ "<STR_LIT:data>" ] [ row [ <NUM_LIT:0> ] ] = row [ <NUM_LIT:1> ] <EOL> return data <EOL> except FileNotFoundError : <EOL> return None </s>
