aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_scansion_record.lua5
1 files changed, 4 insertions, 1 deletions
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");