Working on the Calculated thing
Did some work towards the lua interface, but its kinda shit tbh
This commit is contained in:
@@ -1 +1,14 @@
|
||||
print "hello, world!"
|
||||
local cjson = require("cjson")
|
||||
|
||||
---@diagnostic disable-next-line: undefined-global
|
||||
local expenses, err = GetAllExpenses()
|
||||
if not expenses then
|
||||
print("Error:", err)
|
||||
end
|
||||
|
||||
for i = 1, #expenses do
|
||||
local eJson = expenses[i].expense
|
||||
local e = cjson.decode(eJson)
|
||||
|
||||
print(e)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user