diff --git a/ticket.v b/ticket.v index ddc9d77..09e6d8e 100644 --- a/ticket.v +++ b/ticket.v @@ -9,7 +9,8 @@ pub fn ticket_front(qr string) string { } pub fn run_before() { - qrs := ['test'] + + mut qr_paths := os.walk_ext('qrs', 'png') mut html := '' os.rm('templates/tickets.html') or { panic(err) } mut index_file := os.create('templates/tickets.html') or { @@ -18,7 +19,7 @@ pub fn run_before() { println('debug:${typeof(index_file)}') println('debug: ${ticket_front('test')}') index_file.write_string('