aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Chudnick <sam@chudnick.com>2022-07-21 06:14:33 -0400
committerSam Chudnick <sam@chudnick.com>2022-07-21 06:14:33 -0400
commitd9fb6dcee2f9330d07c3de9fcefead90a8e6a31f (patch)
treea7a3ecdf9b7f0dd5e91b1a8368e2c3e1deaa560d
parent1a62661473e41e40a9165db085ff28c8719727fd (diff)
Removed leftover debugging command
-rw-r--r--database.py3
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