Fix several parsing issues.
This commit is contained in:
@@ -2,12 +2,16 @@ import fs from 'fs/promises'
|
||||
import fg from 'fast-glob'
|
||||
import StreamZip from 'node-stream-zip'
|
||||
import TestingTrend from './parser/testing-trend.js'
|
||||
import path from 'path'
|
||||
|
||||
async function main() {
|
||||
const sources = await fg(['./data/raw/*.zip'])
|
||||
sources.sort()
|
||||
|
||||
const zips = sources.map(source => new StreamZip.async({ file: source }))
|
||||
const zips = sources.map(source => ({
|
||||
date: path.basename(source, path.extname(source)),
|
||||
zip: new StreamZip.async({ file: source })
|
||||
}))
|
||||
|
||||
await TestingTrend(zips)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user