Skip to content

Commit

Permalink
[counter] default to data-staging/json
Browse files Browse the repository at this point in the history
  • Loading branch information
docyx committed Dec 17, 2023
1 parent f2cec96 commit 03c1010
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ npm run start -- cpu video-card

- `start` => Starts the scraper.
- `dev` => Starts the scraper without typechecking.
- `count` => Runs [`counter.ts`](./src/counter.ts); gets the number of parts from `./data/json` or argv[1].
- `count` => Runs [`counter.ts`](./src/counter.ts); gets the number of parts from `./data-staging/json` or argv[1].
- `output` => Runs [`output.ts`](./src/output.ts); outputs JSONL and CSV formats to `./data-staging` or argv[1].
- `zip` => Zips the JSON, JSONL, and CSV folders in `./data`.

Expand Down
2 changes: 1 addition & 1 deletion src/counter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { readdir, readFile } from 'fs/promises'
import { join } from 'path'
import type { Part } from './types'
;(async () => {
const dirName = process.argv.slice(2)[0] ?? 'data/json'
const dirName = process.argv.slice(2)[0] ?? 'data-staging/json'
const files = await readdir(dirName)

let count = 0
Expand Down

0 comments on commit 03c1010

Please sign in to comment.