update: general cleanup

This commit is contained in:
HDVinnie
2020-12-03 00:16:23 -05:00
parent 8efb7b4c58
commit 601e4c1f90
17 changed files with 20 additions and 20 deletions
+3 -1
View File
@@ -1393,7 +1393,9 @@ class UserController extends Controller
'user' => $user,
'active' => $table,
])->render();
} elseif ($request->has('view') && $request->input('view') == 'unsatisfieds') {
}
if ($request->has('view') && $request->input('view') == 'unsatisfieds') {
if (\config('hitrun.enabled') == true) {
$history = History::selectRaw('distinct(history.info_hash), max(torrents.id), max(history.completed_at) as completed_at, max(torrents.name) as name, max(history.created_at) as created_at, max(history.id) as id, max(history.user_id) as user_id, max(history.seedtime) as seedtime, max(history.seedtime) as satisfied_at, max(history.seeder) as seeder, max(torrents.size) as size,max(torrents.leechers) as leechers,max(torrents.seeders) as seeders,max(torrents.times_completed) as times_completed')->with(['torrent' => function ($query) {
$query->withAnyStatus();