import urllib import json from htmlgenerators import artistLink def replacedict(keys,dbport): response = urllib.request.urlopen("http://localhost:" + str(dbport) + "/issues") db_data = json.loads(response.read()) i = 0 html = "
The current database wasn't built with all current rules in effect. Any problem below might be a false alarm and fixing it could create redundant rules. | " html += """Rebuild the database | """
html += "|
'" + artistLink(d[0]) + "'" html += " is a possible duplicate of " html += "'" + artistLink(d[1]) + "' | " html += """""" + d[1] + """ is correct | """
html += """""" + d[0] + """ is correct | """
html += "
'" + artistLink(c[0]) + "' sounds like the combination of " + str(len(c[1])) + " artists: " for a in c[1]: html += "'" + artistLink(a) + "' " html += " | " html += """Fix it | """
html += "|
Is '" + n[0] + "' in '" + artistLink(n[1]) + "' an artist? | " html += """Yes | """
html += "