api: /accounts to return only the top accounts

This commit is contained in:
Thomas R. Koll 2016-01-19 10:35:28 +01:00
parent ee2c06c320
commit 1d18bf2a0f

View File

@ -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