Skip to content

Commit

Permalink
rename is_exists_description into is_exists_remark
Browse files Browse the repository at this point in the history
  • Loading branch information
zw963 committed Jun 2, 2024
1 parent c34f164 commit 0b1d256
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/actions/universities/index.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 ||
Expand Down
2 changes: 1 addition & 1 deletion src/components/universities/main.cr
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ then set (next <input/>).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

Expand Down

0 comments on commit 0b1d256

Please sign in to comment.