Permalink
Browse files

hack: skip existing repo rows

  • Loading branch information...
stnbu committed Sep 1, 2018
1 parent e098b8f commit 9176894512eb0aae06d2456dd7bba45bb8739939
Showing with 4 additions and 0 deletions.
  1. +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']

0 comments on commit 9176894

Please sign in to comment.