force_flag缺失

This commit is contained in:
viletyy 2024-06-24 19:57:50 +08:00
parent 9da27ce977
commit e2835f7c59
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ def outer_to_inter(repo, branch, log_name: str, user: str, force_flag):
async def sync_repo_task(repo, user, force_flag): async def sync_repo_task(repo, user, force_flag):
if repo.sync_granularity == SyncType.one: if repo.sync_granularity == SyncType.one:
branches = await sync_branch_dao.sync_branch(repo_id=repo.id) branches = await sync_branch_dao.sync_branch(repo_id=repo.id)
await sync_branch_task(repo, branches, repo.sync_direction, user) await sync_branch_task(repo, branches, repo.sync_direction, user, force_flag)
else: else:
log_name = f'sync_{repo.repo_name}.log' log_name = f'sync_{repo.repo_name}.log'
try: try: