From 59acf797f31c273a394223c557678758c68d4fc5 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 22 Sep 2018 14:28:39 +0200 Subject: mod_scansion_record: Split up construction of filename for reuse of parts later --- plugins/mod_scansion_record.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/mod_scansion_record.lua') diff --git a/plugins/mod_scansion_record.lua b/plugins/mod_scansion_record.lua index e637d104..0f834c41 100644 --- a/plugins/mod_scansion_record.lua +++ b/plugins/mod_scansion_record.lua @@ -6,8 +6,11 @@ local full_jids = {}; local filters = require "util.filters"; local id = require "util.id"; +local dm = require "util.datamanager"; -local record_file = require "util.datamanager".getpath(id.medium():lower(), "scansion", os.date("%Y%b%d"):lower(), "scs", true); +local record_id = id.medium():lower(); +local record_date = os.date("%Y%b%d"):lower(); +local record_file = dm.getpath(record_id, "scansion", record_date, "scs", true); local scan = io.open(record_file, "w"); -- cgit v1.2.3