Skip to content

Commit

Permalink
keep ROW_NUMBER out of task
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Sep 22, 2024
1 parent ba8cd25 commit 497a833
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions localturk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,8 @@ async function getTaskNum(n: number): Promise<TaskStats> {
const completedTasks = await readCompletedTasks(); // just getting the count.
let i = 0;
let numTotal = 0;
let taskN;;
let taskN;
for await (const task of csv.readRowObjects(tasksFile)) {
task.ROW_NUMBER = String(numTotal + 1);
numTotal++;
if (i === n) {
taskN = task;
Expand Down

0 comments on commit 497a833

Please sign in to comment.