@ -1,3 +1,5 @@
#!/usr/bin/env python3
import urllib.request, datetime, os, time
from urllib.error import URLError, HTTPError
import sqlite3
@ -44,10 +46,8 @@ if error:
error = error.args[1]
time.sleep(1)
print(day,the_time,error, data)
c.execute("""INSERT INTO stats VALUES(?,?,?,?)""", (day, the_time, error, data))
db.commit()
db.close()