diff options
-rw-r--r-- | database.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/database.py b/database.py index 039a893..865fcd6 100644 --- a/database.py +++ b/database.py | |||
@@ -47,9 +47,6 @@ class Database(object): | |||
47 | # Delete item from DB if not needed to keep database small | 47 | # Delete item from DB if not needed to keep database small |
48 | if sec_played == 0: | 48 | if sec_played == 0: |
49 | c.execute("DELETE FROM playstate WHERE item_id=?",(item_id,)) | 49 | c.execute("DELETE FROM playstate WHERE item_id=?",(item_id,)) |
50 | with open("log","a") as log: | ||
51 | log.write("deleted " + item_id + " from playstate db\n") | ||
52 | |||
53 | else: | 50 | else: |
54 | c.execute("SELECT * FROM playstate WHERE item_id=?",(item_id,)) | 51 | c.execute("SELECT * FROM playstate WHERE item_id=?",(item_id,)) |
55 | 52 | ||