mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
snatch list paginate
This commit is contained in:
@@ -221,7 +221,7 @@ class TorrentRepository extends BaseRepository
|
|||||||
->where('finished', Snatch::FINISHED_YES)
|
->where('finished', Snatch::FINISHED_YES)
|
||||||
->with(['user'])
|
->with(['user'])
|
||||||
->orderBy('completedat', 'desc')
|
->orderBy('completedat', 'desc')
|
||||||
->get();
|
->paginate();
|
||||||
foreach ($snatches as &$snatch) {
|
foreach ($snatches as &$snatch) {
|
||||||
$snatch->upload_text = sprintf('%s@%s', mksize($snatch->uploaded), $this->getSnatchUploadSpeed($snatch));
|
$snatch->upload_text = sprintf('%s@%s', mksize($snatch->uploaded), $this->getSnatchUploadSpeed($snatch));
|
||||||
$snatch->download_text = sprintf('%s@%s', mksize($snatch->uploaded), $this->getSnatchDownloadSpeed($snatch));
|
$snatch->download_text = sprintf('%s@%s', mksize($snatch->uploaded), $this->getSnatchDownloadSpeed($snatch));
|
||||||
|
|||||||
Reference in New Issue
Block a user