Project edit

This commit is contained in:
alexey
2025-03-08 00:13:31 +03:00
parent f88ef52d87
commit e0d169e679
11 changed files with 288 additions and 4 deletions

View File

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