From a097102b172fb43bc43c421ec75ac6b305fb7c0d Mon Sep 17 00:00:00 2001 From: Terry Geng Date: Sat, 21 Mar 2020 09:35:31 +0800 Subject: [PATCH] fix: serious typo --- database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database.py b/database.py index 74a9bf9..283b9ba 100644 --- a/database.py +++ b/database.py @@ -416,9 +416,9 @@ class MusicDatabase: def manage_special_tags(self): conn = sqlite3.connect(self.db_path) cursor = conn.cursor() - cursor.execute("UPDATE music SET tags=REPLACE(tags, 'recent added,', '') WHERE tags LIKE 'recent added,' " + cursor.execute("UPDATE music SET tags=REPLACE(tags, 'recent added,', '') WHERE tags LIKE '%recent added,%' " "AND create_at <= DATETIME('now', '-1 day') AND id != 'info'") - cursor.execute("UPDATE music SET tags=tags||'recent added,' WHERE tags NOT LIKE 'recent added,' " + cursor.execute("UPDATE music SET tags=tags||'recent added,' WHERE tags NOT LIKE '%recent added,%' " "AND create_at > DATETIME('now', '-1 day') AND id != 'info'") conn.commit() conn.close()