check if track exists in db before sending file

This commit is contained in:
mungai-njoroge
2023-06-19 21:49:13 +03:00
parent a201303bd9
commit cc6552cb94
17 changed files with 96 additions and 31 deletions
+3
View File
@@ -21,6 +21,7 @@ class SQLiteArtistMethods:
"""
colors = json.dumps(colors)
cur.execute(sql, (artisthash, colors))
cur.close()
@staticmethod
def get_all_artists():
@@ -34,3 +35,5 @@ class SQLiteArtistMethods:
for artist in cur.fetchall():
yield artist
cur.close()