test: changign typing to list now
All checks were successful
forgejo/scripts/pipeline/head This commit looks good
All checks were successful
forgejo/scripts/pipeline/head This commit looks good
This commit is contained in:
parent
0c85699935
commit
d09c8bc331
1 changed files with 1 additions and 4 deletions
|
|
@ -33,15 +33,12 @@ def getSubDomains():
|
||||||
subDomainsRequest = requests.get(subDomainsLink, headers=subDomainsHeader)
|
subDomainsRequest = requests.get(subDomainsLink, headers=subDomainsHeader)
|
||||||
subDomainsJSON = subDomainsRequest.json()
|
subDomainsJSON = subDomainsRequest.json()
|
||||||
|
|
||||||
print(type(subDomainsJSON))
|
|
||||||
|
|
||||||
return subDomainsJSON
|
return subDomainsJSON
|
||||||
|
|
||||||
|
|
||||||
def getCurrentIP():
|
def getCurrentIP():
|
||||||
rrsetList = []
|
rrsetList = []
|
||||||
for rrset in list(getSubDomains()):
|
for rrset in dict(getSubDomains()):
|
||||||
print(rrset)
|
|
||||||
rrsetList.append(rrset["records"][0])
|
rrsetList.append(rrset["records"][0])
|
||||||
|
|
||||||
value, count = Counter(rrsetList).most_common(1)[0]
|
value, count = Counter(rrsetList).most_common(1)[0]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue