update DB

This commit is contained in:
dr.lt.data
2023-09-19 10:50:01 +09:00
parent ef4e7a0ef0
commit b69138a389
5 changed files with 50 additions and 4 deletions

View File

@@ -314,10 +314,10 @@ def git_repo_has_updates(path, do_fetch=False, do_update=False):
new_commit_hash = repo.head.commit.hexsha
if commit_hash != new_commit_hash:
print(f"\x1b[2K\rUpdated: '{path}'")
print(f"\x1b[2K\rUpdated: {path}")
except Exception as e:
print(f"Updating failed: '{path}'\n{e}")
print(f"Updating failed: {path}\n{e}")
# Get commit hash of the remote branch
remote_commit_hash = repo.refs[f'{remote_name}/{branch_name}'].object.hexsha