fix merge conflict

This commit is contained in:
timurgordon 2022-10-25 11:31:16 +03:00
commit 7359e82d58

View File

@ -9,7 +9,8 @@ pub fn ticket_front(qr string) string {
} }
pub fn run_before() { pub fn run_before() {
qrs := ['test']
mut qr_paths := os.walk_ext('qrs', 'png')
mut html := '' mut html := ''
os.rm('templates/tickets.html') or { panic(err) } os.rm('templates/tickets.html') or { panic(err) }
mut index_file := os.create('templates/tickets.html') or { mut index_file := os.create('templates/tickets.html') or {
@ -18,7 +19,7 @@ pub fn run_before() {
println('debug:${typeof(index_file)}') println('debug:${typeof(index_file)}')
println('debug: ${ticket_front('test')}') println('debug: ${ticket_front('test')}')
index_file.write_string('<div>') or { panic('Failed to write <div> to index.html file: $err') } index_file.write_string('<div>') or { panic('Failed to write <div> to index.html file: $err') }
for qr in qrs { for qr in qr_paths {
index_file.write_string(ticket_front(qr)) or { index_file.write_string(ticket_front(qr)) or {
panic('Failed to write qr: $qr to index.html file: $err') panic('Failed to write qr: $qr to index.html file: $err')
} }