From ae014ad06d1a664c0f1f1c34045c96c81fec44b5 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 16 Jun 2021 23:35:14 +0300 Subject: [PATCH] vweb: add a missing check --- vlib/vweb/vweb.v | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index b673f11b89..6599d8175d 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -325,12 +325,9 @@ pub fn run(global_app &T, port int) { // println('vweb no db') } $for field in T.fields { - // if field.is_shared { - // println(field) - //} - //$if field.typ is string { - request_app.$(field.name) = global_app.$(field.name) - //} + if field.is_shared { + request_app.$(field.name) = global_app.$(field.name) + } } request_app.Context = global_app.Context // copy the context ref that contains static files map etc // request_app.Context = Context{