From 0b1d256725455404130d37d7ef5985f8bc86613e Mon Sep 17 00:00:00 2001 From: "Billy.Zheng" Date: Sun, 2 Jun 2024 15:49:10 +0800 Subject: [PATCH] rename is_exists_description into is_exists_remark --- src/actions/universities/index.cr | 4 ++-- src/components/universities/main.cr | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/actions/universities/index.cr b/src/actions/universities/index.cr index 75ca683..9f8f085 100644 --- a/src/actions/universities/index.cr +++ b/src/actions/universities/index.cr @@ -3,7 +3,7 @@ class Universities::Index < BrowserAction param is_985 : Bool = false param is_211 : Bool = false param is_good : Bool = false - param is_exists_description : Bool = false + param is_exists_remark : Bool = false param chong_2023 : Bool = false param chong_2022 : Bool = false param chong_2021 : Bool = false @@ -51,7 +51,7 @@ class Universities::Index < BrowserAction query = query.batch_level(batch_level) if batch_level.presence - query = query.where_chong_wen_baos(user_chong_wen_bao_query.university_remark.is_not_nil) if is_exists_description + query = query.where_chong_wen_baos(user_chong_wen_bao_query.university_remark.is_not_nil) if is_exists_remark if chong_2023 || chong_2022 || chong_2021 || chong_2020 || wen_2023 || wen_2022 || wen_2021 || wen_2020 || diff --git a/src/components/universities/main.cr b/src/components/universities/main.cr index 65228cc..225f991 100644 --- a/src/components/universities/main.cr +++ b/src/components/universities/main.cr @@ -207,7 +207,7 @@ then set (next ).value to my.value2 mount CheckBox, "is_good", "仅显示包含双一流专业高校", all_name_inputs end div class: "col m2" do - mount CheckBox, "is_exists_description", "仅显示含备注学校", all_name_inputs + mount CheckBox, "is_exists_remark", "仅显示含备注学校", all_name_inputs end end