Removing a useless variable

Signed-off-by: Alarig Le Lay <alelay@scaleway.com>
This commit is contained in:
Alarig Le Lay 2024-07-19 11:49:31 +02:00
parent 709b521662
commit de5a36c380
No known key found for this signature in database
GPG key ID: 948D6BC249D8EBFF

View file

@ -23,8 +23,7 @@ def expiration(domain):
cache_control=True cache_control=True
) )
req = session.get('https://data.iana.org/rdap/dns.json') req = session.get('https://data.iana.org/rdap/dns.json')
for list_of_list in req.json()['services']: for k,v in req.json()['services']:
k,v = list_of_list
for x in k: for x in k:
list2dict.append({'name':x, 'url':v[0]}) list2dict.append({'name':x, 'url':v[0]})