Show More
@@ -92,13 +92,10 b' class RepoModel(BaseModel):' | |||
|
92 | 92 | settings_model = VcsSettingsModel(sa=self.sa) |
|
93 | 93 | return settings_model.get_repos_location() |
|
94 | 94 | |
|
95 |
def get(self, repo_id |
|
|
95 | def get(self, repo_id): | |
|
96 | 96 | repo = self.sa.query(Repository) \ |
|
97 | 97 | .filter(Repository.repo_id == repo_id) |
|
98 | 98 | |
|
99 | if cache: | |
|
100 | repo = repo.options( | |
|
101 | FromCache("sql_cache_short", "get_repo_%s" % repo_id)) | |
|
102 | 99 | return repo.scalar() |
|
103 | 100 | |
|
104 | 101 | def get_repo(self, repository): |
General Comments 0
You need to be logged in to leave comments.
Login now