mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 01:25:39 +00:00
add direct downloads indicator
This commit is contained in:
parent
c9887fc601
commit
387ca35a9c
3 changed files with 31 additions and 2 deletions
|
|
@ -885,6 +885,17 @@ class Database {
|
|||
return (int) $query->fetch()->result;
|
||||
}
|
||||
|
||||
public function getMagnetToAcceptableSourceTotalByMagnetId(int $magnetId) : int {
|
||||
|
||||
$this->_debug->query->select->total++;
|
||||
|
||||
$query = $this->_db->prepare('SELECT COUNT(*) AS `result` FROM `magnetToAcceptableSource` WHERE `magnetId` = ?');
|
||||
|
||||
$query->execute([$magnetId]);
|
||||
|
||||
return (int) $query->fetch()->result;
|
||||
}
|
||||
|
||||
public function getMagnetToAddressTrackerSeedersSum() : int {
|
||||
|
||||
$this->_debug->query->select->total++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue