From aa5438bad8c30c06bb540d0d4e9d7493277b1cd8 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Thu, 13 Feb 2020 18:18:42 +0800 Subject: [PATCH] 1 --- lib/tasks/statistic_subject_info.rake | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/tasks/statistic_subject_info.rake b/lib/tasks/statistic_subject_info.rake index 0b7ac7a12..cf9d7c32e 100644 --- a/lib/tasks/statistic_subject_info.rake +++ b/lib/tasks/statistic_subject_info.rake @@ -57,7 +57,6 @@ namespace :subjects do str << ("(#{subject.id}, #{key[:school_id]}, '#{key[:school_name]}', #{key[:course_count]}, " + "#{key[:student_count]}, #{key[:choice_shixun_num]}, #{key[:choice_shixun_frequency]}, " + "'#{Time.now.strftime('%Y-%m-%d %H:%M:%S')}', '#{Time.now.strftime('%Y-%m-%d %H:%M:%S')}')") - puts "str: #{str}" if str.size == 1000 sql = "REPLACE INTO subject_course_records(#{column_value}) VALUES #{str.uniq.join(",")}" str_c = str