diff --git a/app/Filament/Resources/User/ExamUserResource/Pages/ViewExamUser.php b/app/Filament/Resources/User/ExamUserResource/Pages/ViewExamUser.php index 6a21caa9..9e81b931 100644 --- a/app/Filament/Resources/User/ExamUserResource/Pages/ViewExamUser.php +++ b/app/Filament/Resources/User/ExamUserResource/Pages/ViewExamUser.php @@ -117,9 +117,4 @@ protected function getActions(): array Actions\DeleteAction::make(), ]; } - - private function getProgress() - { - - } } diff --git a/app/Repositories/ExamRepository.php b/app/Repositories/ExamRepository.php index 35e3cb96..61022bb5 100644 --- a/app/Repositories/ExamRepository.php +++ b/app/Repositories/ExamRepository.php @@ -1327,32 +1327,4 @@ public function updateProgressBulk(): array return $result; } - public function fixIndexUploadTorrentCount() - { - $page = 1; - $size = 2000; - $examUserTable = (new ExamUser())->getTable(); - $examProgressTable = (new ExamProgress())->getTable(); - while (true) { - $offset = ($page - 1)*$size; - $list = NexusDB::table($examProgressTable) - ->select("$examProgressTable.*, $examUserTable.created_at as exam_created_at") - ->join($examUserTable, "$examProgressTable.exam_user_id", "=", "$examUserTable.id", "left") - ->where("$examUserTable.status", ExamUser::STATUS_NORMAL) - ->where("$examProgressTable.index", Exam::INDEX_UPLOAD_TORRENT_COUNT) - ->limit($size) - ->offset($offset) - ->get() - ; - if ($list->count() == 0) { - do_log("page: $page, offset: $offset, no more data..."); - return; - } - foreach ($list as $item) { - - } - - } - } - } diff --git a/include/constants.php b/include/constants.php index 44d9ca6b..3efad25f 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@ User::query()->where("class", User::CLASS_STAFF_LEADER)->first(["id"])->id] ); } - - /** - * @since 1.8.13 - */ - $settingName = "__has_fix_exam_index_UPLOAD_TORRENT_COUNT"; - $hasFixExamIndexUploadTorrentCount = get_setting($settingName, false); - if (!$hasFixExamIndexUploadTorrentCount) { - - } } public function runExtraMigrate()