moon ordering

This commit is contained in:
2018-10-29 21:04:26 -05:00
parent 98e586bf03
commit 5ccd0832ff
2 changed files with 7 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ class MoonsController extends Controller
//Update the prices for the moon //Update the prices for the moon
$moonCalc->FetchNewPrices(); $moonCalc->FetchNewPrices();
//get all of the moons from the database //get all of the moons from the database
$moons = DB::table('Moons')->get(); $moons = DB::table('Moons')->orderBy('System', 'asc')->get();
//declare the html variable and set it to null //declare the html variable and set it to null
$html = ''; $html = '';
foreach($moons as $moon) { foreach($moons as $moon) {

View File

@@ -46,10 +46,12 @@ class Finances {
} }
public function GetMasterWalletJournal() { public function GetMasterWalletJournal() {
$journal = $this->esi->invoke('get', '/corporations/98287666/wallets/1/journal/'); $journals = $this->esi->invoke('get', '/corporations/98287666/wallets/1/journal/');
$journal = json_decode($journal->raw, true); $journals = json_decode($journal->raw, true);
foreach($journals as $entry) {
return $journal; DB::table('HoldingCorpFinancesJournal');
}
} }
} }