Skip to content

Commit

Permalink
Changed to ensure that descriptions are not blank.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBone committed Aug 14, 2018
1 parent f042fc3 commit e778d38
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -11,7 +11,8 @@
"moment": "^2.22.2",
"request": "^2.87.0",
"request-promise-native": "^1.0.5",
"sqlite3": "^4.0.1"
"sqlite3": "^4.0.1",
"typescript": "^3.0.1"
},
"keywords": [
"scraper",
Expand Down
4 changes: 2 additions & 2 deletions scraper.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scraper.ts
Expand Up @@ -33,7 +33,7 @@ async function initializeDatabase() {

async function insertRow(database, developmentApplication) {
return new Promise((resolve, reject) => {
let sqlStatement = database.prepare("insert or ignore into [data] values (?, ?, ?, ?, ?, ?, ?, ?, ?)");
let sqlStatement = database.prepare("insert or replace into [data] values (?, ?, ?, ?, ?, ?, ?, ?, ?)");
sqlStatement.run([
developmentApplication.applicationNumber,
developmentApplication.address,
Expand Down

0 comments on commit e778d38

Please sign in to comment.