diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2022-02-06 01:09:01 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2022-02-06 01:09:01 -0300 |
commit | bfa3622c23c4bc574e6e51bdd8c196604ebcd172 (patch) | |
tree | 15aaede87b4d230dc8ead67a4c11d8ec206c19a6 /ganarchy/core.py | |
parent | a51c18000cdf4e623d4a46246bcc6d5b1f47e917 (diff) |
Attempt to add pinned repos
Diffstat (limited to 'ganarchy/core.py')
-rw-r--r-- | ganarchy/core.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ganarchy/core.py b/ganarchy/core.py index 872705c..d162dff 100644 --- a/ganarchy/core.py +++ b/ganarchy/core.py @@ -45,7 +45,7 @@ class Repo: """ # TODO fill in Attributes. - def __init__(self, dbconn, project_commit, url, branch, head_commit): + def __init__(self, dbconn, project_commit, url, branch, head_commit, pinned): self.url = url self.branch = branch self.project_commit = project_commit @@ -55,6 +55,7 @@ class Repo: self.hash = None self.branchname = None self.head = None + self.pinned = pinned if not self._check_branch(GIT): return @@ -180,9 +181,9 @@ class Project: """ repos = [] with self._dblock: - for url, branch, head_commit in self._dbconn.list_repobranches(self.commit): + for url, branch, head_commit, pinned in self._dbconn.list_repobranches(self.commit): repos.append( - Repo(self._dbconn, self.commit, url, branch, head_commit) + Repo(self._dbconn, self.commit, url, branch, head_commit, pinned) ) self.repos = repos |