diff --git a/turn-into-sqlite.py b/turn-into-sqlite.py index ca4b7d7..8398123 100644 --- a/turn-into-sqlite.py +++ b/turn-into-sqlite.py @@ -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]