add annotations

This commit is contained in:
sulennnn 2019-12-16 15:17:49 +08:00
parent 0b6598c133
commit cdae68fb2c
2 changed files with 15 additions and 2 deletions

View File

@ -159,7 +159,7 @@ module Mobile
# add by qiubing end
end
# {status:0, result:result}
Rails.logger.info("eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeerror!!!")
Rails.logger.info("ssssssssssssssssssssssssssssssssssssssucess!!!")
Rails.logger.info(0)
Rails.logger.info(result)
Rails.logger.info(modificationLines)

View File

@ -501,9 +501,12 @@ update
Rails.logger.info(@path)
Rails.logger.info(@rev)
@entries = @repository.entries(@path, @rev)
Rails.logger.info("1111111111111111111111111111111")
if request.xhr?
@entries ? render(:partial => 'dir_list_content') : render(:nothing => true)
Rails.logger.info("2222222222222222222222222222222222222222")
else
Rails.logger.info("33333333333333333333333333333333333333333")
# @changesets_latest_coimmit = @g.rep_last_changes(@project.gpid, :rev => @rev, :path => @path)
@changesets_latest_coimmit = @g.commits(@project.gpid, :rev => @rev, :path => @paht).try(:first)
# @g.rep_last_changes(@project.gpid, :rev => @rev, :path => @path)
@ -526,16 +529,26 @@ update
# 一些数据的异步同步更新
# 访问版本庫后更新project_score表数据changeset_num为提交总数
Rails.logger.info("444444444444444444444444444444444444")
project_score = @project.project_score
if project_score.nil?
ProjectScore.create(:project_id => @project.id, :score => false)
else
project_score.update_column(:changeset_num, @changesets_all_count)
end
Rails.logger.info("55555555555555555555555555555555555555")
# 更新提交时间,用于课程
unless @changesets_latest_coimmit.blank?
update_commits_date(@project, @changesets_latest_coimmit)
Rails.logger.info(@changesets_latest_coimmit.blank)
Rails.logger.info("66666666666666666666666666666666666666666")
# Rails.logger.info(update_commits_date(@project, @changesets_latest_coimmit))
# add by qiubing start
# annotation the line , because it leads a error that I don't how to solve
# update_commits_date(@project, @changesets_latest_coimmit)
# add by qiubing end
end
Rails.logger.info("77777777777777777777777777777777777777")
render :layout => 'base_projects'
end