api: /accounts to return only the top accounts
This commit is contained in:
parent
ee2c06c320
commit
1d18bf2a0f
@ -106,7 +106,7 @@ hledgerApiApp j = Servant.serve api combinedServer
|
|||||||
transactionsH = return $ jtxns j
|
transactionsH = return $ jtxns j
|
||||||
pricesH = return $ jmarketprices j
|
pricesH = return $ jmarketprices j
|
||||||
commoditiesH = return $ (M.keys . jcommoditystyles) j
|
commoditiesH = return $ (M.keys . jcommoditystyles) j
|
||||||
accountsH = return $ laccounts $ ledgerFromJournal Hledger.Cli.Any j
|
accountsH = return $ ledgerTopAccounts $ ledgerFromJournal Hledger.Query.Any j
|
||||||
accounttransactionsH (a::AccountName) = do
|
accounttransactionsH (a::AccountName) = do
|
||||||
-- d <- liftIO getCurrentDay
|
-- d <- liftIO getCurrentDay
|
||||||
let
|
let
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user