mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
check if track exists in db before sending file
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user