Skip to content

Commit

Permalink
Change-idname-to-idSourceName in all files (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoobot committed Mar 27, 2023
1 parent 87b0b98 commit 314325f
Show file tree
Hide file tree
Showing 30 changed files with 259 additions and 259 deletions.
2 changes: 1 addition & 1 deletion bin/failed-sources.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const main = () => {
if (!fs.existsSync(source.destinations.raw.path)) {
console.log(
source.country,
source.idName,
source.idSourceName,
"is broken?",
!!source.broken
);
Expand Down
4 changes: 2 additions & 2 deletions bin/write-sources.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ const handleSource = async (sourceName) => {
city: source.short || null,
long: source.long || source.short || null,
short: source.short || null,
main: source.main || source.idName || null,
idName: idName,
main: source.main || source.idSourceName || null,
idSourceName: idSourceName,
info: source.info || null,
brokenDownload: source.brokenDownload || false,
download: source.download || null,
Expand Down
2 changes: 1 addition & 1 deletion identity-source.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
city: null,
short: null,
long: null,
idName: null,
idSourceName: null,
main: null,
center: null,
latitude: null,
Expand Down
4 changes: 2 additions & 2 deletions sources/argentina.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default [
city: "Buenos Aires",
short: "Buenos Aires",
long: "Buenos Aires",
idName: "buenos_aires",
idSourceName: "buenos_aires",
main: "buenos_aires",
center: null,
latitude: null,
Expand Down Expand Up @@ -48,7 +48,7 @@ export default [
city: "Buenos Aires2",
short: "Buenos Aires2",
long: "Buenos Aires2",
idName: "buenos_aires2",
idSourceName: "buenos_aires2",
main: "buenos_aires",
center: null,
latitude: null,
Expand Down
58 changes: 29 additions & 29 deletions sources/australia.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default [
city: "Corangamite",
short: "Corangamite",
long: "Corangamite Shire",
idName: "corangamite",
idSourceName: "corangamite",
main: "corangamite",
center: null,
latitude: null,
Expand Down Expand Up @@ -49,7 +49,7 @@ export default [
city: "Colac-Otways",
short: "Colac-Otways",
long: "Colac-Otways Shire",
idName: "colac_otways",
idSourceName: "colac_otways",
main: "colac_otways",
center: null,
latitude: null,
Expand Down Expand Up @@ -85,7 +85,7 @@ export default [
city: "Ballarat",
short: "Ballarat",
long: "City of Ballarat",
idName: "ballarat",
idSourceName: "ballarat",
main: "ballarat",
center: null,
latitude: null,
Expand Down Expand Up @@ -130,7 +130,7 @@ export default [
city: "Manningham",
short: "Manningham",
long: "City of Manningham",
idName: "manningham",
idSourceName: "manningham",
main: "manningham",
center: null,
latitude: null,
Expand Down Expand Up @@ -161,7 +161,7 @@ export default [
city: "Geelong",
short: "Geelong",
long: "City of Greater Geelong",
idName: "geelong",
idSourceName: "geelong",
main: "geelong",
center: null,
latitude: null,
Expand Down Expand Up @@ -206,7 +206,7 @@ export default [
city: "Melbourne",
short: "Melbourne",
long: "City of Melbourne",
idName: "melbourne",
idSourceName: "melbourne",
main: "melbourne",
center: null,
latitude: null,
Expand Down Expand Up @@ -240,7 +240,7 @@ export default [
city: "Adelaide",
short: "Adelaide",
long: "City of Adelaide",
idName: "adelaide",
idSourceName: "adelaide",
main: "adelaide",
center: null,
latitude: null,
Expand Down Expand Up @@ -274,7 +274,7 @@ export default [
city: "Waite Arboretum",
short: "Waite Arboretum",
long: "Waite Arboretum (Adelaide)",
idName: "waite",
idSourceName: "waite",
main: "waite",
center: null,
latitude: null,
Expand Down Expand Up @@ -303,7 +303,7 @@ export default [
city: "Burnside",
short: "Burnside",
long: "City of Burnside",
idName: "burnside",
idSourceName: "burnside",
main: "burnside",
center: null,
latitude: null,
Expand Down Expand Up @@ -334,7 +334,7 @@ export default [
city: "Launceston",
short: "Launceston",
long: "City of Launceston",
idName: "launceston",
idSourceName: "launceston",
main: "launceston",
center: null,
latitude: null,
Expand Down Expand Up @@ -368,7 +368,7 @@ export default [
city: "Hobson's Bay",
short: "Hobson's Bay",
long: "City of Hobson's Bay",
idName: "hobsons_bay",
idSourceName: "hobsons_bay",
main: "hobsons_bay",
center: null,
latitude: null,
Expand Down Expand Up @@ -398,7 +398,7 @@ export default [
city: "Glenelg",
short: "Glenelg",
long: "Glenelg Shire",
idName: "glenelg",
idSourceName: "glenelg",
main: "glenelg",
center: null,
latitude: null,
Expand Down Expand Up @@ -443,7 +443,7 @@ export default [
city: "Southern Grampians",
short: "Southern Grampians",
long: "City of Southern Grampians",
idName: "southern_grampians",
idSourceName: "southern_grampians",
main: "southern_grampians",
center: null,
latitude: null,
Expand Down Expand Up @@ -476,7 +476,7 @@ export default [
city: "Prospect",
short: "Prospect",
long: "City of Prospect",
idName: "prospect1",
idSourceName: "prospect1",
main: "prospect1",
center: null,
latitude: null,
Expand Down Expand Up @@ -508,7 +508,7 @@ export default [
city: "Prospect",
short: "Prospect",
long: "City of Prospect",
idName: "prospect2",
idSourceName: "prospect2",
main: "prospect1",
center: null,
latitude: null,
Expand All @@ -533,7 +533,7 @@ export default [
city: "Perth",
short: "Perth",
long: "City of Perth",
idName: "perth",
idSourceName: "perth",
main: "perth",
center: null,
latitude: null,
Expand Down Expand Up @@ -565,7 +565,7 @@ export default [
city: "Brimbank",
short: "Brimbank",
long: "City of Brimbank",
idName: "brimbank",
idSourceName: "brimbank",
main: "brimbank",
center: null,
latitude: null,
Expand Down Expand Up @@ -599,7 +599,7 @@ export default [
city: "Bendigo",
short: "Bendigo",
long: "City of Greater Bendigo",
idName: "bendigo",
idSourceName: "bendigo",
main: "bendigo",
center: null,
latitude: null,
Expand Down Expand Up @@ -630,7 +630,7 @@ export default [
city: "Shepparton",
short: "Shepparton",
long: "City of Shepparton",
idName: "shepparton",
idSourceName: "shepparton",
main: "shepparton",
center: null,
latitude: null,
Expand Down Expand Up @@ -675,7 +675,7 @@ export default [
city: "Wyndham",
short: "Wyndham",
long: "City of Wyndham",
idName: "wyndham",
idSourceName: "wyndham",
main: "wyndham",
center: null,
latitude: null,
Expand Down Expand Up @@ -710,7 +710,7 @@ export default [
city: "Port Phillip",
short: "Port Phillip",
long: "City of Port Phillip",
idName: "port-phillip",
idSourceName: "port-phillip",
main: "port-phillip",
center: null,
latitude: null,
Expand Down Expand Up @@ -755,7 +755,7 @@ export default [
city: "Boroondara",
short: "Boroondara",
long: "City of Boroondara",
idName: "boroondara",
idSourceName: "boroondara",
main: "boroondara",
center: null,
latitude: null,
Expand Down Expand Up @@ -789,7 +789,7 @@ export default [
city: "Yarra",
short: "Yarra",
long: "City of Yarra",
idName: "yarra",
idSourceName: "yarra",
main: "yarra",
center: null,
latitude: null,
Expand Down Expand Up @@ -834,7 +834,7 @@ export default [
city: "Glen Eira",
short: "Glen Eira",
long: "City of Glen Eira",
idName: "glen_eira",
idSourceName: "glen_eira",
main: "glen_eira",
center: null,
latitude: null,
Expand Down Expand Up @@ -866,7 +866,7 @@ export default [
city: "Wodonga",
short: "Wodonga",
long: "City of Wodonga",
idName: "wodonga",
idSourceName: "wodonga",
main: "wodonga",
center: null,
latitude: null,
Expand All @@ -891,7 +891,7 @@ export default [
city: "Hobart",
short: "Hobart",
long: "City of Hobart",
idName: "hobart",
idSourceName: "hobart",
main: "hobart",
center: null,
latitude: null,
Expand All @@ -915,7 +915,7 @@ export default [
city: "Sherwood Arboretum",
short: "Sherwood Arboretum",
long: "Sherwood Arboretum (Brisbane)",
idName: "sherwood_arboretum",
idSourceName: "sherwood_arboretum",
main: "sherwood_arboretum",
center: null,
latitude: null,
Expand Down Expand Up @@ -948,7 +948,7 @@ export default [
city: "Sydney",
short: "Sydney",
long: "City of Sydney",
idName: "sydney",
idSourceName: "sydney",
main: "sydney",
center: null,
latitude: null,
Expand All @@ -973,7 +973,7 @@ export default [
city: "Unley",
short: "Unley",
long: "Unley",
idName: "unley",
idSourceName: "unley",
main: "unley",
center: null,
latitude: null,
Expand Down
4 changes: 2 additions & 2 deletions sources/austria.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default [
city: "Vienna",
short: "Vienna",
long: "Vienna",
idName: "vienna",
idSourceName: "vienna",
main: "vienna",
center: null,
latitude: null,
Expand Down Expand Up @@ -47,7 +47,7 @@ export default [
city: "Linz",
short: "Linz",
long: "City of Linz",
idName: "linz",
idSourceName: "linz",
main: "linz",
center: null,
latitude: null,
Expand Down
8 changes: 4 additions & 4 deletions sources/belgium.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default [
city: "Antwerp",
short: "Antwerp",
long: "Antwerp",
idName: "antwerpen_be",
idSourceName: "antwerpen_be",
main: "antwerpen_be",
center: null,
latitude: null,
Expand All @@ -41,7 +41,7 @@ export default [
city: "Wallonie-Bruxelles",
short: "Wallonie-Bruxelles",
long: "Wallonie-Bruxelles",
idName: "wallonie_bruxelles_be",
idSourceName: "wallonie_bruxelles_be",
main: "wallonie_bruxelles_be",
center: null,
latitude: null,
Expand All @@ -66,7 +66,7 @@ export default [
city: "Roosendaal",
short: "Roosendaal",
long: "Gemeente Roosendaal",
idName: "roosendaal_be",
idSourceName: "roosendaal_be",
main: "roosendaal_be",
center: null,
latitude: null,
Expand All @@ -91,7 +91,7 @@ export default [
city: "Gent",
short: "Gent",
long: "Stad Gent",
idName: "gent_be",
idSourceName: "gent_be",
main: "gent_be",
center: null,
latitude: null,
Expand Down
Loading

0 comments on commit 314325f

Please sign in to comment.