|
|
|
@@ -12,16 +12,18 @@ const ScrapeRequest = ({ scrape, index, handleExecute }) => { |
|
|
|
<tr> |
|
|
|
<td> |
|
|
|
<p> |
|
|
|
{console.log(scrape)} |
|
|
|
{console.log(scrape)} |
|
|
|
</p><h3><Link to={{ |
|
|
|
pathname: SCRAPE_RESULTS_PAGE.replace(':id', scrape._id), |
|
|
|
id: scrape._id |
|
|
|
}}>#{index} {scrape.location}</Link> </h3> |
|
|
|
|
|
|
|
}}>#{index} {scrape.location}</Link></h3> |
|
|
|
<p> |
|
|
|
<a className='text-sm mr-3' href={scrape.sourceUrl}><i className="fas fa-external-link-square-alt"></i> https://www.apartments.com</a> |
|
|
|
<span className="lead mr-2">Count : <span className='text-info'>{scrape.count}</span></span> |
|
|
|
<span className="lead mr-2">{t('scrapeRequest.EstimatedTime')} <span className='text-info'>{(new Date(scrape.estimate)).toLocaleString()}</span></span> |
|
|
|
{ (scrape.startDate !== undefined && scrape.startDate !== null) ? |
|
|
|
<span className="lead mr-2">Time: <span className="text-info">{(new Date(scrape.startDate)).toLocaleString() } - {(scrape.endDate != undefined && scrape.endDate!==null) ? (new Date(scrape.endDate)).toLocaleString():''}</span> </span> |
|
|
|
:<span className="lead mr-2">{t('scrapeRequest.EstimatedTime')} <span className='text-info'>{(new Date(scrape.estimate)).toLocaleString()}</span></span> |
|
|
|
} |
|
|
|
</p> |
|
|
|
</td> |
|
|
|
<td> |