diff --git a/app/helpers/courses_helper.rb b/app/helpers/courses_helper.rb index a005b299b..969fbceae 100644 --- a/app/helpers/courses_helper.rb +++ b/app/helpers/courses_helper.rb @@ -456,8 +456,8 @@ module CoursesHelper #课程实践年份下拉框 def course_time_option type = [] - #work_types = WorksCategory.all - for i in (2008..2020) + now_year = Time.now.year + for i in (now_year..now_year + 10) option = [] option << i option << i