mirror of
https://github.com/web3privacy/explorer-data.git
synced 2024-10-15 12:06:26 +02:00
update gen
This commit is contained in:
parent
91bf24d059
commit
4e6994c98c
1 changed files with 26 additions and 29 deletions
|
@ -20,14 +20,12 @@ export class W3PData {
|
|||
if (f.isDirectory && f.name === "projects") {
|
||||
out.projects = [];
|
||||
const projectsDir = `${dataDir}/${f.name}`;
|
||||
for await (const pcd of Deno.readDir(projectsDir)) {
|
||||
const catName = pcd.name;
|
||||
const catDir = `${projectsDir}/${pcd.name}`;
|
||||
for await (const pd of Deno.readDir(catDir)) {
|
||||
for await (const pd of Deno.readDir(projectsDir)) {
|
||||
|
||||
if (!pd.isDirectory) {
|
||||
continue;
|
||||
}
|
||||
const pDir = `${catDir}/${pd.name}`;
|
||||
const pDir = `${dataDir}/${f.name}/${pd.name}`;
|
||||
const indexFn = `${pDir}/index.yaml`;
|
||||
|
||||
const index = Object.assign({ id: pd.name }, yaml.load(
|
||||
|
@ -52,7 +50,6 @@ export class W3PData {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue