Skip to content

Commit

Permalink
Tweak to progress
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanheywood committed Dec 11, 2024
1 parent 7135475 commit 12a7258
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions classes/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -813,11 +813,12 @@ public static function handle_replace_csv(string $data, string $type = 'db') {

// Update the progress bar.
$rowcount++;
$progress->update_full(100 * $rowcount / $contentcount, "Processed $rowcount records. Skipped $rowskip records. Error replacing $rowerror records.");
$progress->update_full(100 * $rowcount / $contentcount,
"Replaced $rowcount rows. Skipped $rowskip rows. Error replacing $rowerror rows.");
}

// Show progress.
$progress->update_full('100', "Processed $rowcount records. Skipped $rowskip records. Error replacing $rowerror records.");
$progress->update_full('100', "Replaced $rowcount rows. Skipped $rowskip rows. Error replacing $rowerror rows.");

$csvimport->cleanup();
$csvimport->close();
Expand Down

0 comments on commit 12a7258

Please sign in to comment.