Skip to content

Commit

Permalink
👍 submoduleの移動に合わせてデータ取得用のディレクトリも変更
Browse files Browse the repository at this point in the history
  • Loading branch information
yamaji committed Dec 23, 2024
1 parent 1771f87 commit ae86e36
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components/graphs/monthly-detected-person.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default async function MonthlyDetectedPersonGraph(props: {
month: number;
}) {
const csvStr = readFileSync(
`${process.cwd()}/public/people-flow-data/monthly/${props.placement}/Person/${props.year}/${props.year}-${props.month}.csv`,
`${process.cwd()}/data/people-flow-data/monthly/${props.placement}/Person/${props.year}/${props.year}-${props.month}.csv`,
).toString();
const data = Papa.parse<AggregatedData>(csvStr, { header: true }).data.slice(0, -1);
// console.log(data);
Expand Down
2 changes: 1 addition & 1 deletion components/graphs/monthly-estimated-age.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default async function MonthlyEstimatedAgeGraph(props: {
month: number;
}) {
const csvStr = readFileSync(
`${process.cwd()}/public/people-flow-data/monthly/${props.placement}/Face/${props.year}/${props.year}-${props.month}.csv`,
`${process.cwd()}/data/people-flow-data/monthly/${props.placement}/Face/${props.year}/${props.year}-${props.month}.csv`,
).toString();
const data = Papa.parse<AggregatedData>(csvStr, { header: true }).data.slice(0, -1);
// console.log(data);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default async function MonthlyEstimatedCarCategorySummaryGraph(props: {
month: number;
}) {
const csvStr = readFileSync(
`${process.cwd()}/public/people-flow-data/monthly/${props.placement}/LicensePlate/${props.year}/${props.year}-${props.month}.csv`,
`${process.cwd()}/data/people-flow-data/monthly/${props.placement}/LicensePlate/${props.year}/${props.year}-${props.month}.csv`,
).toString();
const data = Papa.parse<AggregatedData>(csvStr, { header: true }).data.slice(0, -1);
// console.log(data);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default async function MonthlyEstimatedCarCategoryGraph(props: {
month: number;
}) {
const csvStr = readFileSync(
`${process.cwd()}/public/people-flow-data/monthly/${props.placement}/LicensePlate/${props.year}/${props.year}-${props.month}.csv`,
`${process.cwd()}/data/people-flow-data/monthly/${props.placement}/LicensePlate/${props.year}/${props.year}-${props.month}.csv`,
).toString();
const data = Papa.parse<AggregatedData>(csvStr, { header: true }).data.slice(0, -1);
// console.log(data);
Expand Down
2 changes: 1 addition & 1 deletion components/graphs/monthly-estimated-gender.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default async function MonthlyEstimatedGenderGraph(props: {
month: number;
}) {
const csvStr = readFileSync(
`${process.cwd()}/public/people-flow-data/monthly/${props.placement}/Face/${props.year}/${props.year}-${props.month}.csv`,
`${process.cwd()}/data/people-flow-data/monthly/${props.placement}/Face/${props.year}/${props.year}-${props.month}.csv`,
).toString();
const data = Papa.parse<AggregatedData>(csvStr, { header: true }).data.slice(0, -1);
// console.log(data);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default async function MonthlyEstimatedPrefectureSummaryGraph(props: {
month: number;
}) {
const csvStr = readFileSync(
`${process.cwd()}/public/people-flow-data/monthly/${props.placement}/LicensePlate/${props.year}/${props.year}-${props.month}.csv`,
`${process.cwd()}/data/people-flow-data/monthly/${props.placement}/LicensePlate/${props.year}/${props.year}-${props.month}.csv`,
).toString();
const data = Papa.parse<AggregatedData>(csvStr, { header: true }).data.slice(0, -1);
// console.log(data);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default async function MonthlyEstimatedPrefectureGraph(props: {
month: number;
}) {
const csvStr = readFileSync(
`${process.cwd()}/public/people-flow-data/monthly/${props.placement}/LicensePlate/${props.year}/${props.year}-${props.month}.csv`,
`${process.cwd()}/data/people-flow-data/monthly/${props.placement}/LicensePlate/${props.year}/${props.year}-${props.month}.csv`,
).toString();
const data = Papa.parse<AggregatedData>(csvStr, { header: true }).data.slice(0, -1);
// console.log(data);
Expand Down

0 comments on commit ae86e36

Please sign in to comment.