fix modpol storage of old_ledgers
This commit is contained in:
parent
dc87322dbb
commit
aeb9ec5dc1
@ -133,14 +133,14 @@ local load_old_ledgers = function()
|
|||||||
if obj ~= nil then
|
if obj ~= nil then
|
||||||
local func, err = load (obj)
|
local func, err = load (obj)
|
||||||
if err then
|
if err then
|
||||||
modpol.ocutil.fatal_error ("load_data: orgs" )
|
modpol.ocutil.fatal_error ("load_data: old_ledgers" )
|
||||||
end
|
end
|
||||||
modpol.orgs = func()
|
modpol.old_ledgers = func()
|
||||||
|
|
||||||
local nn = modpol.ocutil.table_length (modpol.old_ledgers)
|
local nn = modpol.ocutil.table_length (modpol.old_ledgers)
|
||||||
local str = "entries"
|
local str = "entries"
|
||||||
if nn == 1 then str = "entry" end
|
if nn == 1 then str = "entry" end
|
||||||
modpol.ocutil.log (nn .. " orgs loaded from disk")
|
modpol.ocutil.log (nn .. " old ledgers loaded from disk")
|
||||||
else
|
else
|
||||||
modpol.ocutil.log ("No stored old ledgers data found")
|
modpol.ocutil.log ("No stored old ledgers data found")
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user