Browse Source

what

master
rscmbbng 6 years ago
parent
commit
664a2be2dd
  1. 6
      slog.py

6
slog.py

@ -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))
time.sleep(1)
db.commit()
time.sleep(1)
db.close()

Loading…
Cancel
Save