Project edit
This commit is contained in:
@@ -18,6 +18,9 @@ end
|
||||
class ReposProjects < Sequel::Model(:repos_projects)
|
||||
end
|
||||
|
||||
class ProjectsReposSpec < Sequel::Model(:projects_repos_spec)
|
||||
end
|
||||
|
||||
class DBase
|
||||
attr :error, :last_id
|
||||
|
||||
@@ -34,7 +37,7 @@ class DBase
|
||||
end
|
||||
|
||||
def get_repo_info_by_name(repo_name)
|
||||
Repos.where(reponame: repo_name)
|
||||
Repos.where(reponame: repo_name).first
|
||||
end
|
||||
|
||||
def get_repo_info_by_id(id)
|
||||
@@ -159,4 +162,8 @@ class DBase
|
||||
@last_id = id
|
||||
end
|
||||
end
|
||||
|
||||
def get_project_repo_spec(prj_id, git_id)
|
||||
ProjectsReposSpec.where(proj_id: prj_id.to_i, repo_id: git_id.to_i).first
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user