delete existing rows
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Michael Zhang 2024-05-20 00:00:48 -05:00
parent d2979b38ea
commit 0f8fb69e5f

View file

@ -22,6 +22,8 @@ CREATE TABLE IF NOT EXISTS "scores" (
);
""")
c.execute("""DELETE FROM "scores";""")
repo = Repo(".")
log_output = repo.git.log('--pretty=%H', '--follow', '--', 'data/output.csv').split('\n')
commits = [repo.rev_parse(commit_hash) for commit_hash in log_output]