forked from MapComplete/MapComplete
Fix: don't index 'all_streets'
This commit is contained in:
parent
07c1cc0bee
commit
c1c2390694
3 changed files with 5 additions and 3 deletions
|
@ -201,6 +201,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "all_streets",
|
"id": "all_streets",
|
||||||
|
"isCounted": false,
|
||||||
"name": {
|
"name": {
|
||||||
"en": "All streets",
|
"en": "All streets",
|
||||||
"nl": "Alle straten",
|
"nl": "Alle straten",
|
||||||
|
|
|
@ -69,8 +69,6 @@ export class OsmPoiDatabase {
|
||||||
await metaclient.connect()
|
await metaclient.connect()
|
||||||
try {
|
try {
|
||||||
const meta = await metaclient.query("SELECT datname FROM pg_database")
|
const meta = await metaclient.query("SELECT datname FROM pg_database")
|
||||||
let latest: string = undefined
|
|
||||||
let latestDate: Date = new Date(0)
|
|
||||||
const dbs: string[] = []
|
const dbs: string[] = []
|
||||||
for (const row of meta.rows) {
|
for (const row of meta.rows) {
|
||||||
const name: string = row["datname"]
|
const name: string = row["datname"]
|
||||||
|
|
|
@ -64,7 +64,10 @@ class TileCountServer extends Script {
|
||||||
handle: async () => {
|
handle: async () => {
|
||||||
const layers = await tcs.getLayers()
|
const layers = await tcs.getLayers()
|
||||||
const meta = await tcs.getMeta()
|
const meta = await tcs.getMeta()
|
||||||
return JSON.stringify({ meta, layers: Array.from(layers) })
|
const mostSuitable = await tcs.findSuitableDatabases()
|
||||||
|
return JSON.stringify({ meta,
|
||||||
|
suitableDatabases: mostSuitable,
|
||||||
|
layers: Array.from(layers) })
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue