fix: educoder api delay
This commit is contained in:
parent
c4586fbb36
commit
0358229b95
|
@ -132,7 +132,7 @@ class RepositoriesController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def contributors
|
def contributors
|
||||||
if params[:filepath].present?
|
if params[:filepath].present? || @project.educoder?
|
||||||
@contributors = []
|
@contributors = []
|
||||||
else
|
else
|
||||||
@contributors = Gitea::Repository::Contributors::GetService.call(@owner, @repository.identifier)
|
@contributors = Gitea::Repository::Contributors::GetService.call(@owner, @repository.identifier)
|
||||||
|
@ -213,8 +213,12 @@ class RepositoriesController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def languages
|
def languages
|
||||||
|
if @project.educoder?
|
||||||
|
render json: {}
|
||||||
|
else
|
||||||
render json: languages_precentagable
|
render json: languages_precentagable
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def archive
|
def archive
|
||||||
domain = Gitea.gitea_config[:domain]
|
domain = Gitea.gitea_config[:domain]
|
||||||
|
|
Loading…
Reference in New Issue