gitlab client

dev_bj
jingquan huang 5 years ago
parent 3a9700b352
commit 9c7523a795

@ -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)

Loading…
Cancel
Save