Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
hack: skip existing repo rows
- Loading branch information
Showing
with
4 additions
and
0 deletions.
-
+4
−0
gitbored/daemon/base.py
|
@@ -71,6 +71,10 @@ def update_repos(self, repos): |
|
|
session = self.get_db_session(self.dir_path) |
|
|
updates = [] |
|
|
for repo in repos: |
|
|
# ZZZ FIXME HACK... We want to update, not just skip existing 'repo' |
|
|
existing_repo = session.query(self.repos).filter_by(name=repo['name']).first() |
|
|
if existing_repo: |
|
|
continue |
|
|
repo_data = {} |
|
|
repo_data['name'] = repo['name'] |
|
|
repo_data['description'] = repo['description'] |
|
|