mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
snatch list paginate
This commit is contained in:
@@ -221,7 +221,7 @@ class TorrentRepository extends BaseRepository
|
||||
->where('finished', Snatch::FINISHED_YES)
|
||||
->with(['user'])
|
||||
->orderBy('completedat', 'desc')
|
||||
->get();
|
||||
->paginate();
|
||||
foreach ($snatches as &$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));
|
||||
|
||||
Reference in New Issue
Block a user