fix: [alex] The generator wants to decode things ;)

pull/106/head
Steve Clement 2019-04-24 10:51:11 +09:00
parent 1be60b805a
commit 88ad201afd
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ alexa_warninglist['list'] = []
alexa_warninglist['matching_attributes'] = ['hostname', 'domain']
for site in top1000:
v = str(site).split(',')[1]
v = site.decode('UTF-8').split(',')[1]
alexa_warninglist['list'].append(v.rstrip())
alexa_warninglist['list'] = sorted(set(alexa_warninglist['list']))
print(json.dumps(alexa_warninglist))