Skip to content

Commit

Permalink
release 1.8.13
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Sep 21, 2024
1 parent 2f7e28e commit d5aa159
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,4 @@ protected function getActions(): array
Actions\DeleteAction::make(),
];
}

private function getProgress()
{

}
}
28 changes: 0 additions & 28 deletions app/Repositories/ExamRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

}

}
}

}
2 changes: 1 addition & 1 deletion include/constants.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.13');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-09-13');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-09-21');
defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
Expand Down
9 changes: 0 additions & 9 deletions nexus/Install/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,15 +332,6 @@ public function runExtraQueries()
["value" => 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()
Expand Down

0 comments on commit d5aa159

Please sign in to comment.