Update diagnose_itunes_discover.py
This commit is contained in:
parent
f3ad65de34
commit
24d0482697
1 changed files with 2 additions and 2 deletions
|
|
@ -67,8 +67,8 @@ def diagnose_itunes_discover():
|
||||||
try:
|
try:
|
||||||
cursor.execute("SELECT COUNT(*) as count FROM similar_artists WHERE similar_artist_musicbrainz_id IS NOT NULL")
|
cursor.execute("SELECT COUNT(*) as count FROM similar_artists WHERE similar_artist_musicbrainz_id IS NOT NULL")
|
||||||
with_musicbrainz = cursor.fetchone()['count']
|
with_musicbrainz = cursor.fetchone()['count']
|
||||||
except Exception:
|
except Exception as exc:
|
||||||
pass
|
logger.debug("similar_artist_musicbrainz_id column is unavailable: %s", exc)
|
||||||
|
|
||||||
logger.info(f" Total similar artists: {total}")
|
logger.info(f" Total similar artists: {total}")
|
||||||
logger.info(f" With iTunes ID: {with_itunes} ({100 * with_itunes / total:.1f}%)" if total > 0 else " With iTunes ID: 0")
|
logger.info(f" With iTunes ID: {with_itunes} ({100 * with_itunes / total:.1f}%)" if total > 0 else " With iTunes ID: 0")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue