Comparison

plugins/mod_scansion_record.lua @ 9357:0ae20fb3d4c6

mod_scansion_record: Rename main file handle
author Kim Alvefur <zash@zash.se>
date Sat, 22 Sep 2018 14:18:39 +0200
parent 9356:d13540d83b8e
child 9358:bbc24fc734da
comparison
equal deleted inserted replaced
9356:d13540d83b8e 9357:0ae20fb3d4c6
7 local filters = require "util.filters"; 7 local filters = require "util.filters";
8 local id = require "util.id"; 8 local id = require "util.id";
9 9
10 local record_file = require "util.datamanager".getpath(id.medium():lower(), "scansion", os.date("%Y%b%d"):lower(), "scs", true); 10 local record_file = require "util.datamanager".getpath(id.medium():lower(), "scansion", os.date("%Y%b%d"):lower(), "scs", true);
11 11
12 local fh = io.open(record_file, "w"); 12 local scan = io.open(record_file, "w");
13 13
14 local function record(string) 14 local function record(string)
15 fh:write(string); 15 scan:write(string);
16 end 16 end
17 17
18 local function record_event(session, event) 18 local function record_event(session, event)
19 record(session.scansion_id.." "..event.."\n\n"); 19 record(session.scansion_id.." "..event.."\n\n");
20 end 20 end