Skip to content

Commit

Permalink
Add Berlin as first level location subdivision
Browse files Browse the repository at this point in the history
  • Loading branch information
kremio committed Nov 19, 2018
1 parent c9dc8d5 commit 2bdce33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/report.js
Expand Up @@ -32,7 +32,7 @@ module.exports = async ( url ) => {
}

if( !report.locations ){
const subdivisions = []
const subdivisions = ['Berlin']
const bezirk = article.find('.field-name-field-bezirk .field-item.even')
.first()
.text()
Expand Down
2 changes: 1 addition & 1 deletion tests/samples/report.json
Expand Up @@ -5,7 +5,7 @@
"startDate": "2018-06-25T00:00:00+02:00",
"iso3166_2": "DE-BE",
"locations": [{
"subdivisions": ["Prenzlauer Berg"],
"subdivisions": ["Berlin","Prenzlauer Berg"],
"latitude": 52.5514774,
"longitude": 13.4111489
}],
Expand Down

0 comments on commit 2bdce33

Please sign in to comment.