mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
fix: educoder api delay
This commit is contained in:
@@ -132,7 +132,7 @@ class RepositoriesController < ApplicationController
|
||||
end
|
||||
|
||||
def contributors
|
||||
if params[:filepath].present?
|
||||
if params[:filepath].present? || @project.educoder?
|
||||
@contributors = []
|
||||
else
|
||||
@contributors = Gitea::Repository::Contributors::GetService.call(@owner, @repository.identifier)
|
||||
@@ -213,7 +213,11 @@ class RepositoriesController < ApplicationController
|
||||
end
|
||||
|
||||
def languages
|
||||
render json: languages_precentagable
|
||||
if @project.educoder?
|
||||
render json: {}
|
||||
else
|
||||
render json: languages_precentagable
|
||||
end
|
||||
end
|
||||
|
||||
def archive
|
||||
|
||||
Reference in New Issue
Block a user