|
|
@ -17,6 +17,7 @@ namespace :homework do
|
|
|
|
system("tmp/homework_file") if File.exist?("tmp/homework_file")
|
|
|
|
system("tmp/homework_file") if File.exist?("tmp/homework_file")
|
|
|
|
homework_common = HomeworkCommon.find(ENV['args'])
|
|
|
|
homework_common = HomeworkCommon.find(ENV['args'])
|
|
|
|
student_works = homework_common.student_works
|
|
|
|
student_works = homework_common.student_works
|
|
|
|
|
|
|
|
g = Gitlab.client
|
|
|
|
student_works.each do |sw|
|
|
|
|
student_works.each do |sw|
|
|
|
|
username = sw.user.try(:show_real_name)
|
|
|
|
username = sw.user.try(:show_real_name)
|
|
|
|
myshixun = sw.try(:myshixun)
|
|
|
|
myshixun = sw.try(:myshixun)
|
|
|
|