mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-27 13:50:33 +00:00
earnings: cleanup and missing clearearnings route
This commit is contained in:
parent
6b819c3be1
commit
d80abb7386
2 changed files with 23 additions and 11 deletions
|
@ -266,6 +266,22 @@ class SiteController extends CommonController
|
|||
$this->renderPartial('earning_results');
|
||||
}
|
||||
|
||||
public function actionClearearnings()
|
||||
{
|
||||
if(!$this->admin) return;
|
||||
$coin = getdbo('db_coins', getiparam('id')); // todo...
|
||||
|
||||
BackendClearEarnings();
|
||||
$this->render('earning');
|
||||
}
|
||||
|
||||
public function actionClearearning()
|
||||
{
|
||||
if(!$this->admin) return;
|
||||
$earning = getdbo('db_earnings', getiparam('id')); // todo...
|
||||
$this->render('earning');
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////
|
||||
|
||||
public function actionPayments()
|
||||
|
@ -579,6 +595,8 @@ class SiteController extends CommonController
|
|||
|
||||
public function actionDeleteExchange()
|
||||
{
|
||||
if(!$this->admin) return;
|
||||
|
||||
$exchange = getdbo('db_exchange', getiparam('id'));
|
||||
$unspent = $exchange->quantity;
|
||||
|
||||
|
@ -601,6 +619,8 @@ class SiteController extends CommonController
|
|||
|
||||
public function actionClearMarket()
|
||||
{
|
||||
if(!$this->admin) return;
|
||||
|
||||
$id = getiparam('id');
|
||||
$market = getdbo('db_markets', $id);
|
||||
|
||||
|
@ -690,6 +710,8 @@ class SiteController extends CommonController
|
|||
|
||||
public function actionRunExchange()
|
||||
{
|
||||
if(!$this->admin) return;
|
||||
|
||||
$id = getiparam('id');
|
||||
$balance = getdbo('db_balances', $id);
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
$earnings = getdbolist('db_earnings', "status!=2 order by create_time limit 500");
|
||||
$earnings = getdbolist('db_earnings', "status!=2 ORDER BY create_time DESC LIMIT 500");
|
||||
|
||||
echo "<br><table class='dataGrid'>";
|
||||
//showTableSorter('maintable');
|
||||
|
@ -62,13 +62,3 @@ foreach($earnings as $earning)
|
|||
echo "</tbody></table>";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue