Skip to content

Commit

Permalink
Add script to empty tests table
Browse files Browse the repository at this point in the history
  • Loading branch information
Pieter committed Jul 25, 2020
1 parent d18698a commit 2f0e1ad
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/clear-old-results.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/python3

import sqlite3

con = sqlite3.connect("/var/www/db/havedane.net.sqlite3")
cur = con.cursor()
cur.execute("DELETE FROM tests")
con.commit()

0 comments on commit 2f0e1ad

Please sign in to comment.