chore: fix render_template need_reload

This commit is contained in:
Jesús Pérez Lorenzo 2021-10-10 17:41:16 +01:00
parent 3258b05bc1
commit c208bf07f1

View File

@ -219,6 +219,11 @@ impl ReqTasks {
match hash_from_data(format!("{}/{}", &root_path, &data_path).as_str(), ctx, data_hash, true) {
Ok(_) => {
let mut need_reload = false;
if let Some(has_reload) = ctx.get("need_reload") {
if has_reload == "true" {
need_reload=true;
}
}
for (key, value) in data_hash.iter() {
if key.as_str() == "need_reload" {
need_reload = true;