Skip to content

Commit

Permalink
Update scraper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Nov 16, 2015
1 parent 39269d2 commit 7f05037
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scraper.php
Expand Up @@ -94,9 +94,12 @@ function ripById($id){
function entryExists($id){
$result = false;
// Set total number of rows
try {
$recordSet = scraperwiki::select("id from data where id ='". $id . "'");
if (!empty($recordSet[0]['id'])) {
$result = true;
}
} catch (Exception $e) {
}
return $result;
}

0 comments on commit 7f05037

Please sign in to comment.