fix bug where create_note_from_template can be called without calendar info

This commit is contained in:
Liquidmantis
2021-12-13 18:09:04 -07:00
parent 3d7bc12627
commit e9fe2bf9c5

View File

@@ -281,6 +281,11 @@ local function calculate_dates(date)
end end
local function linesubst(line, title, dates) local function linesubst(line, title, dates)
if dates == nil then
dates = calculate_dates()
end
local substs = { local substs = {
hdate = dates.hdate, hdate = dates.hdate,
week = dates.week, week = dates.week,